Hi Mikhail, Thank you for suggesting to use json facet. I tried json.facet, it works great and I am able to make a single query instead of two. Now I am planning to get rid of the duplicate child fields in parent docs. However I ran into problems while forming negative queries with block join.
Here's what I would like to query - Get me parent docs whose children do not have a particular field. I tried these but none worked - q=*:*&fq={!parent which="doc_type:parent"}*-*child_color:* q=*:*&fq={!parent which="doc_type:parent" v=$qq}&qq=(!child_color:*) Currently I have duplicate entries of child fields in parent docs, so I am able to do this - &fq=!parent_color:* Is there a way to form this query using block join? Thanks, Soham -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html