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

Gerd Bremer commented on SOLR-2272:
-----------------------------------

Is it possible to sort the join query result?

// first class of documents with refid and pagecount fields; 
// a refid field maps to an id field in the second class of documents (1->100, 
2->101)
doc1:
----
id:1
refid:100
pagecount:35

doc2:
----- 
id:2
refid:101
pagecount:45

// second class of documents with text field
doc100:
------
id:100
text:hello world

doc101:
------
id:101
text: goodbye

Now I would like to select the documents from the first class with field 
pagecount sorted descandant, that is {doc2, doc1} and return the mapped 
documents with text in the same order that is {doc101,doc100}. Is this possible 
with join? I'm looking for an alternative to partial update and this join looks 
promising if I can sort and get the mapped result in the same order.

> Join
> ----
>
>                 Key: SOLR-2272
>                 URL: https://issues.apache.org/jira/browse/SOLR-2272
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Yonik Seeley
>             Fix For: 4.0
>
>         Attachments: SOLR-2272.patch, SOLR-2272.patch
>
>
> Limited join functionality for Solr, mapping one set of IDs matching a query 
> to another set of IDs, based on the indexed tokens of the fields.
> Example:
> fq={!join  from=parent_ptr to:parent_id}child_doc:query

--
This message is automatically generated by JIRA.
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