mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
Experimental domain-searching feature
This commit is contained in:
parent
ced80822a1
commit
e3b2b36f03
@ -114,6 +114,7 @@ public class EdgeSearchOperator {
|
|||||||
private List<BrowseResult> getDomainResults(Context ctx, EdgeSearchSpecification specs) {
|
private List<BrowseResult> getDomainResults(Context ctx, EdgeSearchSpecification specs) {
|
||||||
var requests = specs.subqueries.stream().filter(sq -> sq.searchTermsExclude.isEmpty() && sq.searchTermsInclude.size() == 1)
|
var requests = specs.subqueries.stream().filter(sq -> sq.searchTermsExclude.isEmpty() && sq.searchTermsInclude.size() == 1)
|
||||||
.flatMap(sq -> sq.searchTermsInclude.stream())
|
.flatMap(sq -> sq.searchTermsInclude.stream())
|
||||||
|
.distinct()
|
||||||
.map(keyword -> new EdgeDomainSearchSpecification(specs.buckets.get(0), IndexBlock.TitleKeywords, keyword, 1_000_000, 10, 20))
|
.map(keyword -> new EdgeDomainSearchSpecification(specs.buckets.get(0), IndexBlock.TitleKeywords, keyword, 1_000_000, 10, 20))
|
||||||
.toArray(EdgeDomainSearchSpecification[]::new);
|
.toArray(EdgeDomainSearchSpecification[]::new);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user