List of attributes you want to search in. For ranking purpose, you must order added attributes from the most to the least important.
The ranking formula is the core of the engine. It is composed of a list of rules used to rank the results using a tie-break algorithm. The higher a rule is, the more impact it will have on the results.
It is highly recommended to configure at least one business/popularity metric at the bottom of the list. We also recommend to keep the default ranking rules - which works very well 99% of the time
true
: activate the typo-tolerance (default value).false
: disable the typo-tolerancemin
: keep only results with the lowest number of typo. For example if one result match without typos, then all results with typos will be hidden.strict
: if there is a match without typo, then all results with 2 typos or more will be removed. This option is useful if you want to avoid as much as possible false positives.searchableAttributes
index setting.
If set to false, disable typo-tolerance on numeric tokens (numbers).
By default, the query 1234 will match 9234 if 'Min chars to accept 1 typo' is set to 4. Change this setting to false to avoid this behavior.
If set to true, plurals won't be considered as typos: car/cars and foot/feet will be considered equal.
This feature is based on a dictionary of singular/plural words.
proximity
from the ranking formula. By default, the minimum (and best) proximity value distance between 2 matching words is 1
. Setting it to 2
(or 3
) would allow 1 (or 2) words to be found between the matching words without degrading the proximity ranking value.minProximity=2
the records "JavaScript framework" and"JavaScript charting framework" will get the same proximity score, even if the second one contains a word between the 2 matching words. Default to 1.
prefixLast
"
. For example, "search engine"
will retrieve records having search
next to engine
only. Typo-tolerance is disabled on phrase queries.-
symbol. For example search -engine
will retrieve records containing search
but not engine
.+#