/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java#L1379-L1398
>>>> > Reading the code, it turned out that the filterCache is not used if
>>>> the sort contains the score or if we don't have any score specified (by
>>>> default, it sorts by scor
Original Message-
> From: Shawn Heisey
> Sent: Tuesday, January 4, 2022 5:21 AM
> To: dev@solr.apache.org
> Subject: Re: [Solr] does not use the filterCache
>
> On 1/3/2022 5:00 PM, David Smiley wrote:
> > The filter cache contains unsorted lists of docs; an entry ultimatel
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
lr/search/SolrIndexSearcher.java#L1379-L1398
>>> > Reading the code, it turned out that the filterCache is not used if
>>> the sort contains the score or if we don't have any score specified (by
>>> default, it sorts by score).
>>> > As far as I know,
not used if the
>> sort contains the score or if we don't have any score specified (by
>> default, it sorts by score).
>> > As far as I know, the filterCache contains an unordered set of
>> documents so the sort must be calculated after the application of the
>> fil
fter the application of the filter query.
> > Then, also the score should be computed after the filter query to have a
> smaller set of documents.
> > That being said, I don't understand why Solr does not use the
> filterCache if the score is somehow involved in the sort.
score).
> As far as I know, the filterCache contains an unordered set of documents so
> the sort must be calculated after the application of the filter query.
> Then, also the score should be computed after the filter query to have a
> smaller set of documents.
> That being said