Skip to content

Opensearch dashboards.searchresponse.hits

Home > opensearch-dashboards > SearchResponse > hits

SearchResponse.hits property

Signature:

hits: {
        total: number;
        max_score: number;
        hits: Array<{
            _index: string;
            _type: string;
            _id: string;
            _score: number;
            _source: T;
            _version?: number;
            _explanation?: Explanation;
            fields?: any;
            highlight?: any;
            inner_hits?: any;
            matched_queries?: string[];
            sort?: string[];
        }>;
    };