[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-131) Make Filter caching more efficient

Emmanuel Bernard (JIRA) noreply at atlassian.com
Fri Oct 26 23:31:38 EDT 2007


Make Filter caching more efficient
----------------------------------

                 Key: HSEARCH-131
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-131
             Project: Hibernate Search
          Issue Type: New Feature
          Components: engine
            Reporter: Emmanuel Bernard
            Priority: Minor
             Fix For: 3.1.0


Emmanuel,
 
This is the contents of a message on the Lucene boards regarding cache and filter. I thought you moght be interested in it since you weren't completely happy with your bitset filtering.
 
---------------------
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).
 
- Thom
 
John Patterson wrote:
> 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?
> 
 
Hope this helps some.
 
John G.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list