Tune settings to retrieve more results.

This commit is contained in:
Viktor Lofgren 2023-04-10 15:39:20 +02:00
parent ccc41d1717
commit e19256a6b6
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ public class SearchIndex {
// Finally consider terms in the full index, but only do this for sufficiently long queries
// as short queries tend to be too underspecified to produce anything other than CPU warmth
if (orderedIncludes.length >= 3) {
if (orderedIncludes.length >= 2) {
queryHeads.add(indexReader.findFullWord(IndexQueryPriority.FALLBACK, orderedIncludes[0], fetchSizeMultiplier));
}

View File

@ -205,7 +205,7 @@ public class IndexQueryService {
return switch (priority) {
case BEST -> false;
case GOOD -> resultCount > params.fetchSize / 4;
case FALLBACK -> resultCount != 0;
case FALLBACK -> resultCount > params.fetchSize / 256;
};
}