You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by sathish_ix <sk...@inautix.co.in> on 2013/10/18 16:16:59 UTC
querying nested entity fields
Hi ,
can some help if below query is possible,
Schema:
<tag>
<category>A
<product>product1</product>
<product>product2</product>
</category>
<category>B
<product>product12</product>
<product>product23</product>
</category>
</tag>
Is it possible to like this q=tag.category:A AND
tag.category.product=product1 ???
--
View this message in context: http://lucene.472066.n3.nabble.com/querying-nested-entity-fields-tp4096382.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: querying nested entity fields
Posted by Erick Erickson <er...@gmail.com>.
You'd have to flatten your data. Perhaps you create
a field and add the concatenated data and category,
values like
a_product1, a_product2, b_product12, b_product23
Then your searches are easy...
Best,
Erick
On Fri, Oct 18, 2013 at 4:16 PM, sathish_ix <sk...@inautix.co.in>wrote:
> Hi ,
>
> can some help if below query is possible,
>
> Schema:
>
> <tag>
> <category>A
> <product>product1</product>
> <product>product2</product>
> </category>
> <category>B
> <product>product12</product>
> <product>product23</product>
> </category>
> </tag>
>
> Is it possible to like this q=tag.category:A AND
> tag.category.product=product1 ???
>
>
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/querying-nested-entity-fields-tp4096382.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>