On 1/3/2022 5:00 PM, David Smiley wrote:
The filter cache contains unsorted lists of docs; an entry ultimately needs to be sorted to what the user wants.  The score in particular requires actually running the query, at which point there isn't a point in using the filter cache.  Well sort of; I could imagine a hybrid to visit only the matching docs but that would add complexity.

I know that a filter query does not affect the scores in search results. Filters decide which docs in the query result will be included/excluded in the final resultset, and do not influence the score.

Thinking about that ... I can't imagine why sorting by score would preclude using the filterCache. The scores come from the main query, not the filters. But there is likely to be some aspect to Lucene internals that I know nothing about -- my knowledge of those internals is very limited.

Thanks,
Shawn

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to