Skip to main content

Using Relevance Scoring to Improve Search Results Ordering

02/02/2026

In a search request, we use a SearchFilter's value field to specify concepts from our taxonomy to search for and the boosting field to indicate how much to boost a search result with that value.

Setting the useRelevanceScoring field to true can improve the ordering of the search results by giving a higher priority to documents that are more important for the given taxonomy concepts. With this on, if the search finds a document that has a set of the values that were specified in the request (or, according to a taxonomy, related values such as plural forms, alternative labels, and other values identified by the Entity Extractor APIs), a score is calculated using the base score from Elasticsearch multiplied by each value's boosting factor. Then, to calculate the document's score for ordering of search results, all the scores are added together for that document for each value that was present in both the document and the request.

To see this effect on search results, note the score value in the search results after adjusting any of these parameters.

Note

useRelevanceScore is set to false by default because with large requests it can slow down searches.