SearchResponseHits

October 23, 2025 ยท View on GitHub

Object containing the search hits, which represent the documents that matched the query.

Properties

NameTypeDescriptionNotes
max_scoreintMaximum score among the matched documents[optional]
totalintTotal number of matched documents[optional]
total_relationstrIndicates whether the total number of hits is accurate or an estimate[optional]
hitsList[HitsHits]Array of hit objects, each representing a matched document[optional]

Example

from manticoresearch.models.search_response_hits import SearchResponseHits

# TODO update the JSON string below
json = "{}"
# create an instance of SearchResponseHits from a JSON string
search_response_hits_instance = SearchResponseHits.from_json(json)
# print the JSON string representation of the object
print(SearchResponseHits.to_json())

# convert the object into a dict
search_response_hits_dict = search_response_hits_instance.to_dict()
# create an instance of SearchResponseHits from a dict
search_response_hits_from_dict = SearchResponseHits.from_dict(search_response_hits_dict)

[Back to Model list] [Back to API list] [Back to README]