Skip to content

Latest commit

 

History

History
executable file
·
35 lines (26 loc) · 1.48 KB

HitsHits.md

File metadata and controls

executable file
·
35 lines (26 loc) · 1.48 KB

HitsHits

Search hit representing a matched document

Properties

Name Type Description Notes
id int The ID of the matched document [optional]
score int The score of the matched document [optional]
source object The source data of the matched document [optional]
knn_dist float The knn distance of the matched document returned for knn queries [optional]
highlight object The highlighting-related data of the matched document [optional]
table str The table name of the matched document returned for percolate queries [optional]
type str The type of the matched document returned for percolate queries [optional]
fields object The percolate-related fields of the matched document returned for percolate queries [optional]

Example

from manticoresearch.models.hits_hits import HitsHits

# create an instance of HitsHits from a JSON string
hits_hits_instance = HitsHits.from_json(json)
# print the JSON string representation of the object
print(HitsHits.to_json())

# convert the object into a dict
hits_hits_dict = hits_hits_instance.to_dict()
# create an instance of HitsHits from a dict
hits_hits_from_dict = HitsHits.from_dict(hits_hits_dict)

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