/** * Synapse REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { FacetColumnResult } from './FacetColumnResult'; import type { SearchHit } from './SearchHit'; import type { TableSelectColumn } from './TableSelectColumn'; /** * Results of a search query against an OpenSearch index. The set of populated fields is governed by the request's responseParts: hits and offset are populated by default; the remaining fields are populated only when the corresponding SearchQueryPart is requested. * @export * @interface SearchQueryResults */ export interface SearchQueryResults { /** * * @type {string} * @memberof SearchQueryResults */ concreteType: SearchQueryResultsConcreteTypeEnum; /** * Matching documents. Populated by default (or whenever SearchQueryPart.HITS is requested). * @type {Array} * @memberof SearchQueryResults */ hits?: Array; /** * The total number of matching documents. Populated when SearchQueryPart.TOTAL_HITS is requested. * @type {number} * @memberof SearchQueryResults */ totalHits?: number; /** * The columns represented in each hit's fields, in SELECT-clause order. Populated when SearchQueryPart.SELECT_COLUMNS is requested. When SearchQuery.returnFields is non-empty, this is the subset of columns matching those names. * @type {Array} * @memberof SearchQueryResults */ selectColumns?: Array; /** * Facet aggregation results. Populated when SearchQueryPart.FACETS is requested. Autocomplete never produces facets regardless of this part being requested. * @type {Array} * @memberof SearchQueryResults */ facets?: Array; /** * Zero-based pagination offset echoed from the request. Always populated. * @type {number} * @memberof SearchQueryResults */ offset?: number; } /** * @export */ export declare const SearchQueryResultsConcreteTypeEnum: { readonly org_sagebionetworks_repo_model_search_SearchQueryResults: "org.sagebionetworks.repo.model.search.SearchQueryResults"; }; export type SearchQueryResultsConcreteTypeEnum = typeof SearchQueryResultsConcreteTypeEnum[keyof typeof SearchQueryResultsConcreteTypeEnum]; /** * Check if a given object implements the SearchQueryResults interface. */ export declare function instanceOfSearchQueryResults(value: object): value is SearchQueryResults; export declare function SearchQueryResultsFromJSON(json: any): SearchQueryResults; export declare function SearchQueryResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchQueryResults; export declare function SearchQueryResultsToJSON(json: any): SearchQueryResults; export declare function SearchQueryResultsToJSONTyped(value?: SearchQueryResults | null, ignoreDiscriminator?: boolean): any;