Do you mean this ? I want all the children with a specific value for image_uri_s and all the children which have not that value. In this case i would go with :
childFilter=(image_uri_s:<whatever ...>) OR (-image_uri_s:*) Is this what do you want ? Cheers 2015-07-14 14:58 GMT+01:00 rameshn <ramesh.nuthalap...@gmail.com>: > The problem is filtering based on a element in 1234-images doc. > > <doc> > <field name="id">1234-images</field> > <field name="image_uri_s">http://somedomain.com/some.jpg > </field> > <field name="image_flatten_s">1:1</field> > </doc> > > I have multiple combinations of "image_flatten_s" and "image_uri_s" and > should be able to query / filter on those values for > "image_uri_s":"http://somedomain.com/some.jpg" or > "http://otherdomain.com/other.jpg" > > The query you gave will give me all *-images documents irrespective of > image_uri_s value. I want to filter based on the image_uri_s value, but > still return all other children since there is no filter in the other > children. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Querying-Nested-documents-tp4217169p4217258.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- -------------------------- Benedetti Alessandro Visiting card - http://about.me/alessandro_benedetti Blog - http://alexbenedetti.blogspot.co.uk "Tyger, tyger burning bright In the forests of the night, What immortal hand or eye Could frame thy fearful symmetry?" William Blake - Songs of Experience -1794 England