HI

i have a parent child query in which i have used json facet for child
faceting like following.

qt=/dismax
matchAllQueryRef1=+(+({!query v=$cq}))
sq=+{!lucene v=$matchAllQueryRef1}
q={!parent tag=top which=$pq filters=$child.fq score=max v=$cq}
child.fq={!tag=rcolor_refine}filter({!term f=color_refine
v=$qcolor_refine1}) filter({!term f=color_refine v=$qcolor_refine2})
qcolor_refine1=Blue
qcolor_refine2=Other clrs
cq=+{!simpleFilter v=docType:sku}
pq=docType:(product)
facet=true
facet.mincount=1
facet.limit=-1
facet.missing=false
json.facet= {color_refine:{
domain:{
filter:["{!filters param=$child.fq excludeTags=rcolor_refine
v=$sq}","{!child of=$pq filters=$fq}docType:(product)"]
   },
type:terms,
field:color_refine,
limit:-1,
facet:{productsCount:"uniqueBlock(_root_)"}}}

schema :-
<field name="color_refine" type="string" indexed="true" stored="true"
multiValued="true" docValues="true"/>

i have observed that json facets are slow . It is taking much time than
expected .
Can anyone please check this query specially child.fq and json.facet part .

Please help me in this .

Thanks & regards
Kumar Gaurav

Reply via email to