Re: [Solr] does not use the filterCache

2022-01-12 Thread Daniele Antuzi
/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

RE: [Solr] does not use the filterCache

2022-01-06 Thread Uwe Schindler
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

Re: [Solr] does not use the filterCache

2022-01-03 Thread Shawn Heisey
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

Re: [Solr] does not use the filterCache

2022-01-03 Thread David Smiley
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,

Re: [Solr] does not use the filterCache

2022-01-03 Thread Daniele Antuzi
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

Re: [Solr] does not use the filterCache

2022-01-03 Thread Mikhail Khludnev
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.

Re: [Solr] does not use the filterCache

2022-01-03 Thread Adrien Grand
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