lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Patterson <jdp2...@gmail.com>
Subject Re: Cache BitSet or doc number?
Date Fri, 26 Oct 2007 21:35:41 GMT



Thom Nelson wrote:
> 
> Check out the HashDocSet from Solr, this is the best way to cache small 
> sets of search results.  In general, the Solr BitSet/DocSet classes are 
> more efficient than using the standard java.util.BitSet.  You can use 
> these independent of the rest of Solr (though I recommend checking out 
> Solr if you want to do complex caching).
> 

I imagine the fastest way to combine cached results is to store them in an
array ordered by doc number so that the ConjunctionQuery can use them
directly.  The Javadoc for HashDocSet says that they are stored out of order
which would make this impossible.
-- 
View this message in context: http://www.nabble.com/Cache-BitSet-or-doc-number--tf4699716.html#a13435843
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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


Mime
View raw message