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

Anton commented on SOLR-3076:
-----------------------------

Hi!

I trying use this feature with solr nightly build: i add __root__ field and 
index data with inner <doc> blocks.

?q=*:* gives me data:

<result name="response" numFound="2" start="0">
    <doc>
        <int name="id">4</int>
        <bool name="is_parent">false</bool>
        <int name="_root_">3</int>
    </doc>
    <doc>
        <int name="id">3</int>
        <bool name="is_parent">true</bool>
        <long name="_version_">1447068567577034752</long>
        <int name="_root_">3</int>
    </doc>
</result>

?q={!parent which=is_parent:true}*:*

gives me error:
child query must only match non-parent docs, but parent docID=1 matched 
childScorer

however ?q={!child of=is_parent:true}*:*

gives me expected result (only one child doc):

<result name="response" numFound="1" start="0">
    <doc>
        <int name="id">4</int>
        <bool name="is_parent">false</bool>
        <int name="_root_">3</int>
    </doc>
</result>

Please, can you explain me what i doing wrong?
                
> Solr(Cloud) should support block joins
> --------------------------------------
>
>                 Key: SOLR-3076
>                 URL: https://issues.apache.org/jira/browse/SOLR-3076
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Grant Ingersoll
>             Fix For: 4.5, 5.0
>
>         Attachments: 27M-singlesegment-histogram.png, 27M-singlesegment.png, 
> bjq-vs-filters-backward-disi.patch, bjq-vs-filters-illegal-state.patch, 
> child-bjqparser.patch, dih-3076.patch, dih-config.xml, 
> parent-bjq-qparser.patch, parent-bjq-qparser.patch, Screen Shot 2012-07-17 at 
> 1.12.11 AM.png, SOLR-3076-childDocs.patch, SOLR-3076.patch, SOLR-3076.patch, 
> SOLR-3076.patch, SOLR-3076.patch, SOLR-3076.patch, SOLR-3076.patch, 
> SOLR-3076.patch, SOLR-3076.patch, SOLR-3076.patch, SOLR-3076.patch, 
> SOLR-3076.patch, SOLR-3076.patch, SOLR-3076.patch, 
> SOLR-7036-childDocs-solr-fork-trunk-patched, 
> solrconf-bjq-erschema-snippet.xml, solrconfig.xml.patch, 
> tochild-bjq-filtered-search-fix.patch
>
>
> Lucene has the ability to do block joins, we should add it to Solr.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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