Gravatar for fbeaudoin@coveo.com

Question by Frederic Beaudoin, Dec 12, 2016 2:40 PM

partialMatchThreshold rounding

Hi,

I would like to know how rounding works in the partialMatchThreshold.

For example, with the following markup configuration:

<div class="CoveoSearchbox data-enable-omnibox="false" data-enable-partial-match="true" data-partial-match-keywords="6" data-partial-match-threshold="75%"></div>

If a query basic expression contains 6 keywords, will documents containing 4 or more of those keywords (4.5 rounded down) match the query, or will they need to contain at least 5 keywords (4.5 rounded up)?

Thanks!

Gravatar for slangevin@coveo.com

Comment by Simon, Dec 14, 2016 3:28 PM

It is indeed not documented anywhere but from my tests, it would round to the floor. So in your example it would need 4, not 5. I have opened a documentation request and will ask them to answer here once they have the official answer.

1 Reply
Gravatar for fbeaudoin@coveo.com

Answer by Frederic Beaudoin, Jan 4, 2017 1:11 PM

I have received confirmation from the Coveo Search API development team that the partial match threshold resulting value is rounded up.

Ask a question