Exact match with split (e.g. text field vs textfield)

We are experiencing a similar problem to Handling omitted spaces (e.g. billgates instead of bill gates). I have noticed a ranking behavior that is a bit confusing.

We have typoTolerance: true, so we would expect Splitting and concatenation | Algolia to be enabled.

However, searching for “textfield” returns:

  • a page A that has “TextField” in its matching attribute with an exact word count of 1
  • a page B that has "Text Field’ in its matching attribute with an exact word count of 0

So A ranks before B. Why is B not returned with an exact word count of 1?


In practice, this means that on https://mui.com/, when a developer searches for “textfield” he sees a result for Toolpad, rather than Material UI.