mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
Tune settings to retrieve more results.
This commit is contained in:
parent
ccc41d1717
commit
e19256a6b6
@ -129,7 +129,7 @@ public class SearchIndex {
|
|||||||
|
|
||||||
// Finally consider terms in the full index, but only do this for sufficiently long queries
|
// 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
|
// 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));
|
queryHeads.add(indexReader.findFullWord(IndexQueryPriority.FALLBACK, orderedIncludes[0], fetchSizeMultiplier));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ public class IndexQueryService {
|
|||||||
return switch (priority) {
|
return switch (priority) {
|
||||||
case BEST -> false;
|
case BEST -> false;
|
||||||
case GOOD -> resultCount > params.fetchSize / 4;
|
case GOOD -> resultCount > params.fetchSize / 4;
|
||||||
case FALLBACK -> resultCount != 0;
|
case FALLBACK -> resultCount > params.fetchSize / 256;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user