Apache Solr - Wrong facet count -


are there known issues in solr 3.6, when grouping, filter query (fq) applied faceting, facet counts coming wrong.

if have query:

..indent=on&wt=json&start=0&rows=500&q=*:*&group=true&group.truncate=true&group.ngroups=true&group.field=id&facet=true&facet.mincount=1&facet.field={!ex=filed1}field1& facet.field={!ex=filed2}field2 

if user filters on field1, have following query:

...indent=on&wt=json&start=0&rows=500&q=*:*&fq={!tag=dt}field1:value&group=true&group.truncate=true&group.ngroups=true&group.field=id&facet=true&facet.mincount=1&facet.field={!ex=dt}field1&facet.field={!ex=dt}field2 

i'm noticing facet counts different in results coming each query.

thanks,

there seem 2 problems here:

  1. you misspelling field1 filed1 in !ex queries.
  2. you using !ex local parameter without corresponding !tag parameter.

Comments