import { EsHitDto } from "../../dtos/elastic/es-hit.dto";

/**
 * Structure of 'hits' object of Elasticsearch response
 */
export interface EsResponseHits {
    /**
     * Object containing info about hits
     */
    total: object;

    /**
     * Maximum score amongst all search results
     */
    max_score?: number;

    /**
     * Array of search results
     */
    hits: EsHitDto[];
}