Re: Proper use of LRUQueryCache

2016-01-10 Thread samt & sonders
Thank you Adrien, very much appreciated!! Andreas Adrien Grand 9 January 2016 at 19:22 Le ven. 8 janv. 2016 à 12:05, samt& sonders a écrit : It seems like a default QueryCache is already set for an IndexReader acquired by the SearcherManager. Is there any informati

Re: Proper use of LRUQueryCache

2016-01-09 Thread Adrien Grand
Le ven. 8 janv. 2016 à 12:05, samt & sonders a écrit : > It seems like a default QueryCache is already set for an IndexReader > acquired by the SearcherManager. Is there any information about the > default settings? > Query caching is indeed enabled by default since 5.4: https://issues.apache.or

Re: Proper use of LRUQueryCache

2016-01-08 Thread samt & sonders
Hi Adrien, thanks for your response! It seems like a default QueryCache is already set for an IndexReader acquired by the SearcherManager. Is there any information about the default settings? And are there any requirements I have to meet for the cache to work properly beside than having a Bo

Re: Proper use of LRUQueryCache

2016-01-07 Thread Adrien Grand
Hi Andreas, The easiest way is to use the query cache through IndexSearcher.setQueryCache. Then IndexSearcher will figure out by itself which filters are worth caching. Le jeu. 7 janv. 2016 à 13:30, samt & sonders a écrit : > Hi, > > I'm changing my code from using CachingWrapperQuery/CachingWr

Proper use of LRUQueryCache

2016-01-07 Thread samt & sonders
Hi, I'm changing my code from using CachingWrapperQuery/CachingWrapperFilter to LRUQueryCache and I'm running into some questions: 1.) what is the right way to use the LRUQueryCache: Query myCacheQuery = queryCache.doCache(myQuery, defaultCachingPolicy); a.) Doing this ones and re-use myCa