[ 
https://issues.apache.org/jira/browse/LUCENE-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187457#comment-13187457
 ] 

Robert Muir commented on LUCENE-3602:
-------------------------------------

Just a few ideas about 3.x backport:
* MultiTermQuery doesn't have a real 'seek' there... you have to open up and 
swap in a new 'actualEnum' (does this clone the indexinput etc?) starting at 
the new seek position... I think its tricky and ugly. Maybe we can/should seek 
to 3.x TermEnum/FilteredTermEnum so this will work nicer...? I havent looked at 
how hairy this would be though.
* The rewrites are not always per-segment like they are in trunk, and it could 
be bad to "seek" a lot when MTQ is in 'auto mode' because if I recall its 
expensive (creating lots of multitermsenums). Maybe since Join knows up-front 
how many terms are in the hash it should determine which method to use itself 
(setRewriteMethod)... maybe on 3.x just set filter rewrite since you know will 
be "seeking"? Since you return the query the user could still always override 
the rewrite method if they really care, it would just be a default.

                
> Add join query to Lucene
> ------------------------
>
>                 Key: LUCENE-3602
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3602
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: modules/join
>            Reporter: Martijn van Groningen
>             Fix For: 3.6, 4.0
>
>         Attachments: LUCENE-3602.patch, LUCENE-3602.patch, LUCENE-3602.patch, 
> LUCENE-3602.patch, LUCENE-3602.patch, LUCENE-3602.patch, LUCENE-3602.patch, 
> LUCENE-3602.patch, LUCENE-3602.patch, LUCENE-3602.patch
>
>
> Solr has (psuedo) join query for a while now. I think this should also be 
> available in Lucene.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to