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

Mikhail Khludnev commented on LUCENE-6332:
------------------------------------------

might be made available for Solr as a query parser like SOLR-6234

> JoinUtil.createSemiJoinQuery()
> ------------------------------
>
>                 Key: LUCENE-6332
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6332
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: modules/join
>    Affects Versions: 5.0
>            Reporter: Mikhail Khludnev
>
> I want to contribute the subj which should do something like ..{{WHERE EXISTS 
> (SELECT 1 FROM fromSearcher.search(fromQuery) WHERE fromField=toField)}}. It 
> turns out, that it can be returned by the current method 
> {{createJoinQuery(...ScoreMode.None)}}
> * at first, it should run {{fromQuery}} first, collect {{fromField}} into 
> {{BytesRefHash}} by {{TermsCollector}}, like it's done now
> * then it should return query with _TwoPhase_ Scorer
> * which obtains {{toField}} on {{matches()}} and check term for existence in  
> {{BytesRefHash}}
> Do you think it's ever useful? if you do, I can bake a patch. 
> Anyway, suggest the better API eg separate method, or enum and actual  name!  
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to