You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2007/01/21 06:48:30 UTC
[jira] Resolved: (SOLR-114) HashDocSet new hash(), andNot(),
union()
[ https://issues.apache.org/jira/browse/SOLR-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonik Seeley resolved SOLR-114.
-------------------------------
Resolution: Fixed
committed.
> HashDocSet new hash(), andNot(), union()
> ----------------------------------------
>
> Key: SOLR-114
> URL: https://issues.apache.org/jira/browse/SOLR-114
> Project: Solr
> Issue Type: Improvement
> Components: search
> Reporter: Yonik Seeley
> Attachments: hashdocset.patch, test.patch
>
>
> Looking at the negative filters stuff, I realized that andNot() had no optimized implementation for HashDocSet, so I implemented that and union().
> While I was in there, I did a re-analysis of hash collision rates and came up with a cool new hash method that goes directly into a linear scan and is hence simpler, faster, and has fewer collisions.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
Re: [jira] Resolved: (SOLR-114) HashDocSet new hash(), andNot(), union()
Posted by Yonik Seeley <yo...@apache.org>.
On 1/21/07, Mike Klaas <mi...@gmail.com> wrote:
> On 1/20/07, Yonik Seeley (JIRA) <ji...@apache.org> wrote:
>
> > > Looking at the negative filters stuff, I realized that andNot() had no optimized implementation for HashDocSet, so I implemented that and union().
>
> Out of curiosity, what is your current plan for this? Something along
> the lines of storing a negated flag, which would be used to do
> andNot() rather than intersection() in SolrIndexSearcher.getDocSet()?
>
> I think it would be a great feature and can help out with devel or review.
There are two related things, and I'm only tackling one. I'm *not
*looking at a generated DocSet and then choosing to try and cache it
as an inverse if it would be smaller.
I am looking at queries, and determining if they are negative (no
positive elements, currently matches nothing in Lucene). If they are
negative, I generate and cache the positive version, and do andNot()
for operations.
Code is done but untested (no test code yet even). I'll add a draft
for your review now.
-Yonik
Re: [jira] Resolved: (SOLR-114) HashDocSet new hash(), andNot(), union()
Posted by Mike Klaas <mi...@gmail.com>.
On 1/20/07, Yonik Seeley (JIRA) <ji...@apache.org> wrote:
> > Looking at the negative filters stuff, I realized that andNot() had no optimized implementation for HashDocSet, so I implemented that and union().
Out of curiosity, what is your current plan for this? Something along
the lines of storing a negated flag, which would be used to do
andNot() rather than intersection() in SolrIndexSearcher.getDocSet()?
I think it would be a great feature and can help out with devel or review.
-Mike