You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mikhail Khludnev (JIRA)" <ji...@apache.org> on 2016/06/15 14:03:09 UTC

[jira] [Closed] (SOLR-7098) Solr Join: Return Parent and Child Documents

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

Mikhail Khludnev closed SOLR-7098.
----------------------------------
    Resolution: Won't Fix

> Solr Join: Return Parent and Child Documents
> --------------------------------------------
>
>                 Key: SOLR-7098
>                 URL: https://issues.apache.org/jira/browse/SOLR-7098
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>            Reporter: jefferyyuan
>            Priority: Minor
>              Labels: join, search
>             Fix For: 6.0, 5.2
>
>
> Solr JoinQParserPlugin returns only right side(parent) documents, it would be great if we can return all documents.
> User case:
> If JoinQParserPlugin can return all (parent and child) documents, client can  group parent and child docs together with same group.field - (optionally) then use group.main=true to navigate them.
> The implementation in single mode:
> (as solr join doesn't support distributed search)
> req parameter: {!join from=man_id to=id includeParent=true}
> Add includeParent into org.apache.solr.search.JoinQuery
> Update JoinQuery's hashCode and equals to include includeParent.
> In org.apache.solr.search.JoinQuery.JoinQueryWeight.getDocSet()
> DocSet fromSet = fromSearcher.getDocSet(q);
> if (includeParent) {
> 	rstDocset = rstDocset.union(fromSet);
> }



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

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