sap
sap

Reputation: 1141

Apache Solr - Wrong facet count

Are there any known issues in Solr 3.6, where when grouping, filter query (fq) is applied with faceting, the facet counts are coming back wrong.

If I have a 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, then I 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 that the facet counts for are different in the results coming back from each query.

thanks,

Upvotes: 2

Views: 822

Answers (1)

Alexandre Rafalovitch
Alexandre Rafalovitch

Reputation: 9789

There seem to be two problems here:

  1. You are misspelling field1 as filed1 in your !ex queries.
  2. You are using !ex local parameter but without corresponding !tag parameter.

Upvotes: 1

Related Questions