Hi Mikhail
Thanks for your reply . Please help me in this .
Followings are the screenshot:-
[image: image.png]
[image: image.png]
json facet debug Output:-
json:
{
- facet:
{
- color_refine:
{
- domain:
{
- excludeTags: "rassortment,top,top2,top3,top4,",
- filter:
[
-
"{!filters param=$child.fq excludeTags=rcolor_refine v=$sq}",
- "{!child of=$pq filters=$fq}docType:(product collection)",
],
},
- type: "terms",
- field: "color_refine",
- limit: -1,
- facet:
{
- productsCount: "uniqueBlock(_root_)"
},
},
- size_refine:
{
- domain:
{
- excludeTags: "rassortment,top,top2,top3,top4,",
- filter:
[
- "{!filters param=$child.fq excludeTags=rsize_refine v=$sq}"
,
- "{!child of=$pq filters=$fq}docType:(product collection)",
],
},
- type: "terms",
- field: "size_refine",
- limit: -1,
- facet:
{
- productsCount: "uniqueBlock(_root_)"
},
},
}
}
regards
Kumar Gaurav
On Tue, Jan 21, 2020 at 5:25 PM Mikhail Khludnev <[email protected]> wrote:
> Hi.
> Can you share debugQuery=true output?
>
> On Tue, Jan 21, 2020 at 1:37 PM kumar gaurav <[email protected]> wrote:
>
> > 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
> >
>
>
> --
> Sincerely yours
> Mikhail Khludnev
>