You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by krithika r <kr...@gmail.com> on 2013/09/20 01:59:56 UTC

Lucene ToParentBlockJoin problems

Hi,

I'm trying to do something very simple with the parent/child
blockjoinquery.

I have a several child docs and a parent doc added to index in the same
order.

There are 3 fields + filter field for the parent doc.
And 2 fields in child doc.

I'm trying to get child document matching a field X : 'some value' of the
parent doc and a field A : (value1 or value2 or value3) of the child doc.

I tried implementing toChildBlockJoin and tried toParentBlockJoin by
reversing it. I'm not able to get anything to work.

I tried following exactly what mikemccandless blog says on block join
queries as well.

Nothing works!

How should I approach this? I'd appreciate any help in this.

Thanks
Kia

Re: Lucene ToParentBlockJoin problems

Posted by Michael McCandless <lu...@mikemccandless.com>.
Can you boil down your example into a small test case, that fails, and
post that?

Mike McCandless

http://blog.mikemccandless.com


On Thu, Sep 19, 2013 at 7:59 PM, krithika r <kr...@gmail.com> wrote:
> Hi,
>
> I'm trying to do something very simple with the parent/child
> blockjoinquery.
>
> I have a several child docs and a parent doc added to index in the same
> order.
>
> There are 3 fields + filter field for the parent doc.
> And 2 fields in child doc.
>
> I'm trying to get child document matching a field X : 'some value' of the
> parent doc and a field A : (value1 or value2 or value3) of the child doc.
>
> I tried implementing toChildBlockJoin and tried toParentBlockJoin by
> reversing it. I'm not able to get anything to work.
>
> I tried following exactly what mikemccandless blog says on block join
> queries as well.
>
> Nothing works!
>
> How should I approach this? I'd appreciate any help in this.
>
> Thanks
> Kia

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