Options for increasing precision

I think this question has been asked a few times in various ways. As I understand, AppSearch aims to have a high recall. We have a use-case where we'd like to increase precision.
One way to do that is by adjusting the fuzziness, but this does not seem to be doable. Is this something that is on the roadmap?
The solution about filtering results on a set score threshold does not seem to work either. Sometimes a query will return results with high scores (20-30) and results that are not relevant will still have a score on ~5. Other times, the most relevant result has a score of 1, so setting a "hard" threshold does not seem to work.

Are there any other options? Hopefully you can help :slight_smile:

There is something like this on our roadmap, but I'm not sure of the exact timing.

In the meantime, you could try making your query more specific... perhaps limiting which fields are being searched (https://swiftype.com/documentation/app-search/api/search/search-fields).

Perhaps there is some way you can create a new field in your data with a limited subset of text for searching?

You could also try crafting a more specific query with Lucene Query Syntax (https://swiftype.com/documentation/app-search/api/search#lucene).

Just thinking out loud.

A suggestion I've made before for someone implementing a search on a Name field, was to have a primary query that is very specific, and then a fallback query if that returns no results. So in other words, if a user searches for "John Smith", try performing an exact match query by searching for "John Smith" (with quotes), and if that returns 0 results, fallback to performing that query without quotes.

Hopefully this helps,


I think the last suggestion could work for us. We'll have to do some tweaking and see how it performs, but thanks for spitballing a bit :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.