join query might be helpful: http://wiki.apache.org/solr/Join

join can across indexes but probably won't work in solr clound.

be aware that only "to" documents are retrievable, if you want content from
both documents, join query won't work. And in lucene join query doesn't
quite work on multiple join conditions, haven't test it in solr yet.

I have similar join case like you, eventually I choose to denormalize our
data into one set of documents.


On 13 October 2013 22:34, Michael Tyler <michaeltyler1...@gmail.com> wrote:

> Hello,
>
>     I have 2 different solr indexes returning 2 different sets of
> SolrDocumentList. Doc Id is the foreign key relation.
>
> After obtaining them, I want to perform "AND" operation between them and
> then return results to user. Can you tell me how do I get this? I am using
> solr 4.3
>
>  SolrDocumentList results1 = responseA.getResults();
>  SolrDocumentList results2 = responseB.getResults();
>
> results1  : d1, d2, d3
> results2  :  d1,d2, d4
>
> Return : d1, d2
>
> Regards,
> Michael
>



-- 
All the best

Liu Bo

Reply via email to