mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
Merge pull request 'Experimental domain-searching feature' (#46) from master into release
Reviewed-on: https://git.marginalia.nu/marginalia/marginalia.nu/pulls/46
This commit is contained in:
commit
dfb4d3b2ae
@ -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