Last updated 07 November 2017

How can I search for a phone number?

There is no universal way to write phone numbers, and you might have them in several formats in your database (805-555-5555, 8055555555, +18055555555). How should you store them in an Algolia index?

First of all, the dash (-) and plus (+) signs are no issue as the engine treats them, by default, as separators (like the space). Adding them or not won’t impact the search.

Searching for those phone numbers is a little different than searching for any other keyword.

If you’re not interested in any approximation you can disable typo-tolerance on this field through the disableTypoToleranceOnAttributes option.