You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by govind nitk <go...@gmail.com> on 2021/10/30 08:07:40 UTC

Search inside parent and nested documents

Hi,

I am using edismax parser for querying parent documents. With [child ]
transformer, I am able to get the child/nested documents of matching
parents.

But I am curious to know any way to user queryfields for child docs?

For example, q= A B C
I am trying to get child documents matching these query words ( at least 1
or all).
How to get querying on child docs in this case ?

Is there any way to mention a queryparser for a child transformer factory ?

Re: Search inside parent and nested documents

Posted by govind nitk <go...@gmail.com>.
Can anyone help in using multiple query parsers ?

On Sun, Oct 31, 2021 at 8:42 AM govind nitk <go...@gmail.com> wrote:

> in case of subquery, I used {!terms } query and able to get the sql-join
> like operation.
>
> Can we use multiple query parsers in query ?
> Ex. child.q={!dismax ... } {!terms ..}
> where dismax will be used to select the child docs and {!terms} will be
> used to take the join.
>
> is this possible?
>
> On Sat, Oct 30, 2021 at 1:42 PM govind nitk <go...@gmail.com> wrote:
>
>> > Solr documentation says,
>> [subquery] transformer is intended to be an improvement for [child] .
>>
>> Will try this out.
>>
>> On Sat, Oct 30, 2021 at 1:37 PM govind nitk <go...@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I am using edismax parser for querying parent documents. With [child ]
>>> transformer, I am able to get the child/nested documents of matching
>>> parents.
>>>
>>> But I am curious to know any way to user queryfields for child docs?
>>>
>>> For example, q= A B C
>>> I am trying to get child documents matching these query words ( at
>>> least 1 or all).
>>> How to get querying on child docs in this case ?
>>>
>>> Is there any way to mention a queryparser for a child transformer
>>> factory ?
>>>
>>>
>>>
>>>
>>>

Re: Search inside parent and nested documents

Posted by govind nitk <go...@gmail.com>.
in case of subquery, I used {!terms } query and able to get the sql-join
like operation.

Can we use multiple query parsers in query ?
Ex. child.q={!dismax ... } {!terms ..}
where dismax will be used to select the child docs and {!terms} will be
used to take the join.

is this possible?

On Sat, Oct 30, 2021 at 1:42 PM govind nitk <go...@gmail.com> wrote:

> > Solr documentation says,
> [subquery] transformer is intended to be an improvement for [child] .
>
> Will try this out.
>
> On Sat, Oct 30, 2021 at 1:37 PM govind nitk <go...@gmail.com> wrote:
>
>> Hi,
>>
>> I am using edismax parser for querying parent documents. With [child ]
>> transformer, I am able to get the child/nested documents of matching
>> parents.
>>
>> But I am curious to know any way to user queryfields for child docs?
>>
>> For example, q= A B C
>> I am trying to get child documents matching these query words ( at
>> least 1 or all).
>> How to get querying on child docs in this case ?
>>
>> Is there any way to mention a queryparser for a child transformer factory
>> ?
>>
>>
>>
>>
>>

Re: Search inside parent and nested documents

Posted by govind nitk <go...@gmail.com>.
> Solr documentation says,
[subquery] transformer is intended to be an improvement for [child] .

Will try this out.

On Sat, Oct 30, 2021 at 1:37 PM govind nitk <go...@gmail.com> wrote:

> Hi,
>
> I am using edismax parser for querying parent documents. With [child ]
> transformer, I am able to get the child/nested documents of matching
> parents.
>
> But I am curious to know any way to user queryfields for child docs?
>
> For example, q= A B C
> I am trying to get child documents matching these query words ( at least 1
> or all).
> How to get querying on child docs in this case ?
>
> Is there any way to mention a queryparser for a child transformer factory ?
>
>
>
>
>