lucene-java-user mailing list archives

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

Hi,

I am thinking about caching search results for common queries and just want
to check that for small numbers of results it would be better to store the
doc number as ints or shorts than to store a Filter with a BitSet.  I guess
if you results contain less than 1/32 or 1/16 of the number of documents
then it would take less memory.

Is there anything else to consider?

Thanks,

John
-- 
View this message in context: http://www.nabble.com/Cache-BitSet-or-doc-number--tf4699716.html#a13435244
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