You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Kevin Osborn <os...@yahoo.com> on 2008/08/14 21:15:57 UTC

QueryResultsCache and DocSet filter

We have a bunch of user caches that return DocSet objects. So, we intersect them and send a DocSet filter and the actual query to getDocListAndSet or getDocList. The problem here is that the calls in SolrIndexSearcher don't appear to use the QueryResultsCache if the filer is a DocSet rather than a List<Query>.

So, the end result is that our new version of Solr is slower than our old version. Our old version cached Query objects instead of DocSets. However, it had quite a few other problems. I thought it would be an improvement to use DocSets. Is it recomended to re-work the caches to return Query objects and use that as my filterList?

Our index size is about million documents. Our typical result set size is about 15, but can occasionally be in the range of 5,000-15,000.



      

Re: QueryResultsCache and DocSet filter

Posted by Yonik Seeley <yo...@apache.org>.
On Thu, Aug 14, 2008 at 3:15 PM, Kevin Osborn <os...@yahoo.com> wrote:
> The problem here is that the calls in SolrIndexSearcher don't appear to use the QueryResultsCache if the filer is a DocSet rather than a List<Query>.

Right... using a DocSet as part of the cache key would be pretty slow
(key comparisons) and more memory intensive.

> Is it recomended to re-work the caches to return Query objects and use that as my filterList?

Yes, that should work.

-Yonik