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 <kont...@samtundsonders.at> a
écrit :

> 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