lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <m...@apache.org>
Subject Re: Returning parent's field which searching for child
Date Tue, 09 Aug 2016 10:23:54 GMT
Hello Edwin,
Have you tried to combine q={!parent ..}... &fl=*,[child ...] ?

On Tue, Aug 9, 2016 at 12:59 PM, Zheng Lin Edwin Yeo <edwinyeozl@gmail.com>
wrote:

> Hi,
>
> Would like to check, is it possible to return certain fields from parent's
> record, when we are searching for fields that are only contained in child
> records.
>
> For example, for this query:
> http://localhost:8983/solr/collection1/select?q=childField:123
>
> The child field can only be found in child, so this search will not return
> any parent's record. But if I want to return like says its parent's ID
> together with the above query, is it possible to be done?
>
> I'm using Solr 6.1.0.
>
> Regards,
> Edwin
>



-- 
Sincerely yours
Mikhail Khludnev

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message