/** * Copyright Linkurious SAS 2012 - 2019 * * - Created on 2019-10-30. */ import { Request } from '../../http/request'; import { LkSubGraph } from '../graphItemTypes'; import { IDataSourceParams } from '../commonTypes'; import { AutoCompletePropertyParams, GetIndexationStatusResponse, ISearchFullParams, ISearchParams, PropertyAutoCompleteResponse, SearchResponse, StartIndexationParams, UpdateIndexParams } from './types'; export * from './types'; export declare class SearchAPI extends Request { /** * Start indexing for a given data-source. * * - If the search index does not exist yet, it is created and fully populated. * * - If incremental indexing is configured AND the search index is consistent with the schema, * it is incrementally synchronized. * * - Otherwise, the search index is deleted and fully re-created. * * This endpoint responds without waiting for the indexing process to finish. This process run in * the background and may take a long time. * * If waitForCompletion flag is set to true, the request will wait until the indexing process completes before responding. */ startIndexation(params?: StartIndexationParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Assert the search index of a given data-source exists (without comprehensively checking its * content). Then: * * - If incremental indexing is configured, incrementally synchronize this index. This * synchronization is guaranteed to be incremental: in particular, if the index is not consistent * with the schema, a full index re-creation will not be triggered. * * - Otherwise, simply set the data-source state to READY. In other words, assume it has been * fully indexed by external means. * * This endpoint responds without waiting for the underlying operations to finish. In particular, * if an incremental index synchronization is started, it may run for a long time in the * background. * * If waitForCompletion flag is set to true, the request will wait until the indexing process completes before responding. */ updateIndex(params?: UpdateIndexParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Delete the content of the search index for a given data-source, and set the state of this * data-source to NEED_INDEX. */ deleteIndex(params?: IDataSourceParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get the indexation status for a given data-source. */ getIndexationStatus(this: Request, params?: IDataSourceParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Perform a search of nodes or edges based on a search query, a fuzziness value and filters. * The list of items that matched the search query is returned. */ search(this: Request, params: ISearchParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Perform a search of nodes or edges based on a search query, a fuzziness value and filters. * A subgraph made of the items that matched the search query and the edges between them is returned. */ searchFull(this: Request, params: ISearchFullParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Autocomplete a specific text property using a given value prefix. * If `params.itemTypes` is defined, will only look for property values within the given * node-categories (or edge-types). */ autoCompleteProperty(this: Request, params: AutoCompletePropertyParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; }