[ 
https://issues.apache.org/jira/browse/LUCENE-6332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mikhail Khludnev updated LUCENE-6332:
-------------------------------------
    Description: 
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}} docValue 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!   

  was:
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!   

        Summary: join query scanning "toField" docValue     (was: 
JoinUtil.createSemiJoinQuery())

*ok* referring to _semijoin_ doesn't really make sense, because all Lucene join 
queries are semijoins. Hence, I rename the summary, though it still lacks of 
clarity.    
Any feedback?

> join query scanning "toField" docValue   
> -----------------------------------------
>
>                 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}} docValue 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to