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: Nested documents
Date Thu, 23 Jun 2016 11:51:38 GMT
Please check [child] [subquery] document transformers.
23 июня 2016 г. 10:57 пользователь "Anil" <anilklce@gmail.com> написал:

> HI,
>
> I understand child and parent documents are individual documents in nested
> document indexing.
>
> is there any way to get the parent documents with query of AND of two child
> content ?
>
> Eg :
>
> <doc>
>   <field name="id">1</field>
>   <field name="title">Product name 1 </field>
>   <field name="category">product</field>
>     <doc>
>       <field name="id">1-1</field>
>       <field name="color">Red</field>
>       <field name="size">L</field>
>     </doc>
>     <doc>
>       <field name="id">1-2</field>
>       <field name="color">Blue</field>
>       <field name="size">L</field>
>     </doc>
> </doc>
>
> <doc>
>   <field name="id">2</field>
>   <field name="title">Product name 2 </field>
>   <field name="category">product</field>
>     <doc>
>       <field name="id">2-1</field>
>       <field name="color">Red</field>
>       <field name="size">L</field>
>     </doc>
>     <doc>
>       <field name="id">2-2</field>
>       <field name="color">Green</field>
>       <field name="size">L</field>
>     </doc>
> </doc>
> </doc>
>
> Expected search : Products having both Red and Blue color.
> Expected result : document with id  1
>
> i am sure this is not possible with BlockedJoin. is there any way to
> achieve this.
>
> Thanks.
>

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