: 2. The sorting is different. In this case I need to do the query again (I : think, please let me know if there's a better option), by using : SolrIndexSearcher.getDocList(...). : : I'm looking for a way to tell the SolrIndexSearcher that it can limit it's : query (including sorting) to the docset that I got by 1. (orginal docset + : some intersections), because I figured it must be quicker (is it? ) :
Just pass your DocSet (orginal docset + some intersections) to your call to getDocList() (there are multiple arg signatures for getDocList(), take a look at all of them) : I've found a method SolrIndexSearcher.cacheDocSet(..) but am not entirely : sure what it does (sideeffects? ) : Can someone please elaborate on this? The javadocs for cacheDocSet are prety explicit ... it allows you to ensure that the DocSet resulting from a Query gets put in the filterCache. optionalAnswer allows you to save some time in the event that you already know the result from an earlier (uncached) operation. 99/100 you'll just use getDocSet(Query) instead. -Hoss