Class RelevanceScoreSpec (0.16.0)

RelevanceScoreSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The specification for returning the document relevance score.

Attribute

Name Description
return_relevance_score bool
Optional. Whether to return the relevance score for search results. The higher the score, the more relevant the document is to the query.