Re: [Solr] does not use the filterCache

2022-01-12 Thread Daniele Antuzi
Hi Mikhail, Thank you for your clarification. It has been really useful. I understood what my problem was. I used the debugger adding a breakpoint in the method get() of the CaffeineCache. The execution was blocked only when the flag useFilterCache == true. So, the breakpoint not hit plus the name

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
Daniele, 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 onl

Re: [Solr] does not use the filterCache

2022-01-03 Thread Daniele Antuzi
Hi Mikhail, Thanks for your reply. Probably I wasn't clear enough, actually, in the piece of code I pointed out , the searcher decides whether t

Re: [Solr] does not use the filterCache

2022-01-03 Thread Mikhail Khludnev
Hi, Adrien. Thanks for forwarding this. Daniele, you pointed to the code which bypasses Lucene searching and just sorts cached docset. Applying filter before searching is done by getProcessedFilter() https://github.com/apache/solr/blob/c2db3a943e665cfb39e9ea53640be40cf2c09fbc/solr/core/src/java/org

Re: [Solr] does not use the filterCache

2022-01-03 Thread Adrien Grand
Hi Daniele, This is the Lucene dev list, I'm redirecting your question to dev@solr.apache.org. On Fri, Dec 31, 2021 at 5:35 PM Daniele Antuzi wrote: > > Hi, > I was taking a look at the Solr searcher to see how the filterCache is used: > https://github.com/apache/solr/blob/c2db3a943e665cfb39e9e