Merge pull request 'master' (#58) from master into release

Reviewed-on: https://git.marginalia.nu/marginalia/marginalia.nu/pulls/58
This commit is contained in:
Viktor Lofgren 2022-07-28 19:26:59 +02:00
commit becdcaf770

View File

@ -116,7 +116,9 @@ public class EdgeSearchOperator {
.filter(sq -> sq.searchTermsExclude.isEmpty() && sq.searchTermsInclude.size() == 1)
.flatMap(sq -> sq.searchTermsInclude.stream())
.distinct()
.map(keyword -> new EdgeDomainSearchSpecification(specs.buckets.get(0), IndexBlock.Title, keyword, 1_000_000, 10, 20))
.flatMap(keyword ->
specs.buckets.stream().map(bucket -> new EdgeDomainSearchSpecification(bucket, IndexBlock.Topic, keyword, 1_000_000/specs.buckets.size(), 5, 20))
)
.toArray(EdgeDomainSearchSpecification[]::new);
if (requests.length == 0)