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 Priyanka Tufchi <pr...@launchship.com> on 2014/02/21 07:38:12 UTC

Query Regarding Parent Query

Hi All

I have been experimenting with parent child relation code in Apache
Lucene using ParentBlockJoinQuery .Can any one explain me if I don't
add ParentQuery in indexSearcher and simply search by childQuery What
will happen .I tried it using two docs and it give equal score to both
docs.



Thanks
Priyanka

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


Re: Query Regarding Parent Query

Posted by Michael McCandless <lu...@mikemccandless.com>.
Searching by child query alone will just find matching child docs,
scored "normally".

I.e., nothing special (for block join) happens in that case, unless
you are using the block join collector.

Mike McCandless

http://blog.mikemccandless.com


On Fri, Feb 21, 2014 at 1:38 AM, Priyanka Tufchi
<pr...@launchship.com> wrote:
> Hi All
>
> I have been experimenting with parent child relation code in Apache
> Lucene using ParentBlockJoinQuery .Can any one explain me if I don't
> add ParentQuery in indexSearcher and simply search by childQuery What
> will happen .I tried it using two docs and it give equal score to both
> docs.
>
>
>
> Thanks
> Priyanka
>
> ---------------------------------------------------------------------
> 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