Merge pull request 'Experimental domain-searching feature' (#59) from master into release

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

View File

@ -117,7 +117,7 @@ public class EdgeSearchOperator {
.flatMap(sq -> sq.searchTermsInclude.stream())
.distinct()
.flatMap(keyword ->
specs.buckets.stream().map(bucket -> new EdgeDomainSearchSpecification(bucket, IndexBlock.Topic, keyword, 1_000_000/specs.buckets.size(), 5, 20))
specs.buckets.stream().map(bucket -> new EdgeDomainSearchSpecification(bucket, IndexBlock.Title, keyword, 1_000_000/specs.buckets.size(), 5, 20))
)
.toArray(EdgeDomainSearchSpecification[]::new);