Fuzzy search comes to the Query API
Nobody types perfectly. A shopper searching your site will mistype "televisiom", drop a letter, or add one too many – and until now, that meant no results.
The Enterspeed Query API now supports fuzzy search, so small typos no longer return an empty result. Instead of demanding an exact match, it finds the closest results and ranks them by relevance – giving people what they're looking for, even when they don't spell it quite right.
It's a natural fit for search bars, autocomplete, and anywhere your users type freely. Fuzzy search works on analyzed text fields in your index and can be combined with your existing filters, sorting, pagination, and facets.
A quick example
Request – note the deliberate typo in televisiom:
POST https://query.enterspeed.com/v1/productIndex
{
"search": {
"field": "name",
"value": "televisiom",
"literal": false
}
}Response – the correct item still comes back, ranked by _score:
{
"status": 0,
"totalResults": 1,
"results": [
{
"sku": "p-5427",
"name": "Television",
"url": "/products/television/",
"_score": 1.389
}
]
}Try it in the Management App
Search is also available directly in the Query playground in the Management App – no code required. Build and tweak your query, hit run, and see results instantly.
And as a nice extra: once you've built your query, you can now just click the cURL button to copy the full cURL request based on your query. 🚀
Check out the full details in the Query API documentation.