SearchHit
SearchHit represents a matched row returned in search results. It is populated only when you use the highlight or KNN vector query feature.
Data structure
message SearchHit {
optional double score = 3;
optional HighlightResult highlight_result = 4;
repeated SearchInnerHit search_inner_hits = 5;
optional int32 nested_doc_offset = 6;
}
|
Parameter |
Type |
Required |
Description |
|
score |
double |
No |
The relevance score of the matched row. |
|
highlight_result |
No |
The highlighted results for non-Nested fields. |
|
|
search_inner_hits |
No |
The matched rows within a Nested field. |
|
|
nested_doc_offset |
int32 |
No |
The start position of child rows to return when a Nested field contains multiple child rows. |