Commit dfd17373 authored by dermario's avatar dermario Committed by borisson_
Browse files

Issue #2834730 by dermario, borisson_: Document hard limit behavior for equal results

parent 65e4a1b6
......@@ -30,6 +30,26 @@ After adding one of those, you can add a facet on the facets configuration page:
If you're using Search API views, make sure to disable views cache when using
facets for that view.
KNOWN ISSUES
------------
When choosing the "Hard limit" option on a search_api_db backend, be aware that
the limitation is done internally after sorting on the amount of results ("num")
first and then sorting by the raw value of the facet (e.g. entity-id) in the
second dimension. This can lead to edge cases when there is an equal amount of
results on facets that are exactly on the threshold of the hard limit. In this
case the raw facet value with the lower value is preferred:
| num | value | label |
|-----|-------|-------|
| 3 | 4 | Bar |
| 3 | 5 | Atom |
| 2 | 2 | Zero |
| 2 | 3 | Clown |
"Clown" will be cut off due to its higher internal value (entity-id). For
further details see: https://www.drupal.org/node/2834730
FAQ
---
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment