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 myCacheQuery

b.)  Doing this every time (which means I always have to rebuild myQuery)


3.) Before I have created one CachingWrapperFilter for each Filter. Am I now supposed to create one LRUQueryCache for all of my Filters (which are now Queries) or can it still create one LRUQueryCache for each Filter (does it make sense?)


Thanks for any help,
Andreas





---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to