mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +00:00
Experimental domain-searching feature
This commit is contained in:
parent
d2087e28ee
commit
3b3cca211d
@ -113,7 +113,7 @@ public class EdgeSearchOperator {
|
||||
|
||||
private List<BrowseResult> getDomainResults(Context ctx, EdgeSearchSpecification specs) {
|
||||
List<String> keywords = specs.subqueries.stream().filter(sq -> sq.searchTermsExclude.isEmpty() && sq.searchTermsInclude.size() == 1)
|
||||
.findFirst().map(sq -> sq.searchTermsExclude).orElseGet(Collections::emptyList);
|
||||
.findFirst().map(sq -> sq.searchTermsInclude).orElseGet(Collections::emptyList);
|
||||
|
||||
if (keywords.size() == 1) {
|
||||
var request = new EdgeDomainSearchSpecification(specs.buckets.get(0), IndexBlock.TitleKeywords, keywords.get(0), 10_000, 10, 5);
|
||||
|
Loading…
Reference in New Issue
Block a user