The frequency
matching strategy is a new strategy added to the already existing list of matching strategies. This strategy will give more weight to the less frequent words, making the search engine focus on the most discriminating words.
A frequency
variant to the matchingStrategy
search parameter has been added. This will favor the least frequent query words when retrieving the documents.
Parameter: matchingStrategy
Expected value: last
, all
or frequency
Default value: last
Defines the strategy used to match query terms in documents.
curl \\
-X POST '<http://localhost:7700/indexes/movies/search>' \\
-H 'Content-Type: application/json' \\
--data-binary '{
"q": "big fat liar",
"matchingStrategy": "frequency"
}'
The frequency
variant counter will be added to the matching_strategy
analytics.