On 4/9/2014 2:15 PM, Erick Erickson wrote:
Right, but the response in the doc when you make a request is almost,
but not quite totally, unrelated to how facet values are tallied. It's
all about what tokens are actually in your index, which you can see in
the "schema browser"...
Supplement to what Erick has told you:
SOLR-5512 seems to be related to facets using docValues. The commit for
that issue looks like it only touches on that specifically.If you do not
have (and never have had) docValues on this field, then SOLR-5512 should
not apply.
I am reasonably sure that for facets on fields with docValues, your
facets would reflect the *stored* information, not the indexed information.
Finally, I don't think that docValues work on fieldtypes whose class is
solr.TextField, which is the only class that can have an analysis chain
that would turn "4 5 1" into three separate tokens. The response that
you shared where the value is "4 5 1" looks like there is only one value
in the field -- so for that document, it is effectively the same as one
that is single-valued.
Bottom line: It looks like either your analysis chain is working
differently in the newer version, or you have documents in your newer
index that are not in the older one. Can you share the field and
fieldType definitions from both versions? Did your luceneMatchVersion
change with the upgrade? If you are using DIH to populate your index,
can you also share your DIH config?
Thanks,
Shawn