lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: MUST operator across grouped documents
Date Tue, 19 May 2015 04:21:10 GMT
Take a look at the Solr join (not block join in this case). Be aware
that it isn't quite
what you think of with SQL joins. so approach with caution.

Best,
Erick

On Mon, May 18, 2015 at 4:33 PM, Eduardo Manrique
<eduardo@s1mbi0se.com.br> wrote:
> Hi,
>
> I need to search using group join with AND through fields in different documents.
> For example I might have the documents:
>         doc1: field1=a, parentId=1
>         doc2: field2=b, parentId=1
>
> What a need is to make a join using parentId and a search like:
>         field1 = a AND field2 = b grouping by parentId
>
> I this case I should get the group with parentId 1.
> I noticed that BooleanQuery with MUST will only work if field1 and field2 where in the
same document. Is it possible to do that?
>
> Obs: I working with lucene 5.1
>
> Thanks,
> Eduardo Manrique
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

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


Mime
View raw message