import { Service } from '../Core/index'; import { SearchData, SearchDocumentId, SearchRequest, SearchResults } from './SearchTypes'; /** * Search engine * * ElasticSearch engine, to index and search data * An admin creates indices * Users index and search documents * * */ export declare class Search extends Service { /** * Get deployment type associated to Search service * @return {string} */ static readonly DEPLOYMENT_TYPE: string; /** * Get default deployment id associated to Search service * @return {string} */ static readonly DEFAULT_DEPLOYMENT_ID: string; /** * ElasticSearch Service * * This API is a very thin wrapper around ElasticSearch's API. * @access public * */ /** * Deletes data * * Deletes a document from the elasticsearch engine by id. * @access public * */ delete(body: SearchDocumentId): void; /** * Gets data * * Retrieves a document from the elasticsearch engine by id. * @access public * */ get(body: SearchDocumentId): Promise; /** * Indexes data * * Inserts or updates a document into the elasticsearch engine. * @access public * */ index(body: SearchData): void; /** * Searches for data * * @access public * */ search(body: SearchRequest): Promise; }