When using facet.threads, SimpleFacets can return the wrong results when using facet.prefix multiple times on the same field.
The problem is that SimpleFacets essentially stores the prefix value in a global variable, rather than passing the current prefix value into the Callable. So, the prefix value that is used when getting the term counts is whichever one was the last one parsed.
STEPS TO REPRODUCE:
- Create a document with a string field named "myFieldName" and value "foo"
- Create another document with a string field named "myFieldName" and value "bar"
- Run this query:
I'm using 4.9, but I think this affects all versions.
A user previously reported this here:
I think this affects parameters other than facet.prefix, but I have not tried that yet.