UNPKG

@azure/search-documents

Version:
41 lines 4.8 kB
import type { SearchContext as Client } from "./index.js"; import type { SearchDocumentsResult, LookupDocument, SuggestDocumentsResult, IndexDocumentsBatch, IndexDocumentsResult, AutocompleteResult } from "../../models/azure/search/documents/models.js"; import type { AutocompletePostOptionalParams, AutocompleteGetOptionalParams, IndexOptionalParams, SuggestPostOptionalParams, SuggestGetOptionalParams, GetDocumentOptionalParams, SearchPostOptionalParams, SearchGetOptionalParams, GetDocumentCountOptionalParams } from "./options.js"; import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client"; export declare function _autocompletePostSend(context: Client, searchText: string, suggesterName: string, options?: AutocompletePostOptionalParams): StreamableMethod; export declare function _autocompletePostDeserialize(result: PathUncheckedResponse): Promise<AutocompleteResult>; /** Autocompletes incomplete query terms based on input text and matching terms in the index. */ export declare function autocompletePost(context: Client, searchText: string, suggesterName: string, options?: AutocompletePostOptionalParams): Promise<AutocompleteResult>; export declare function _autocompleteGetSend(context: Client, searchText: string, suggesterName: string, options?: AutocompleteGetOptionalParams): StreamableMethod; export declare function _autocompleteGetDeserialize(result: PathUncheckedResponse): Promise<AutocompleteResult>; /** Autocompletes incomplete query terms based on input text and matching terms in the index. */ export declare function autocompleteGet(context: Client, searchText: string, suggesterName: string, options?: AutocompleteGetOptionalParams): Promise<AutocompleteResult>; export declare function _indexSend(context: Client, batch: IndexDocumentsBatch, options?: IndexOptionalParams): StreamableMethod; export declare function _indexDeserialize(result: PathUncheckedResponse): Promise<IndexDocumentsResult>; /** Sends a batch of document write actions to the index. */ export declare function index(context: Client, batch: IndexDocumentsBatch, options?: IndexOptionalParams): Promise<IndexDocumentsResult>; export declare function _suggestPostSend(context: Client, searchText: string, suggesterName: string, options?: SuggestPostOptionalParams): StreamableMethod; export declare function _suggestPostDeserialize(result: PathUncheckedResponse): Promise<SuggestDocumentsResult>; /** Suggests documents in the index that match the given partial query text. */ export declare function suggestPost(context: Client, searchText: string, suggesterName: string, options?: SuggestPostOptionalParams): Promise<SuggestDocumentsResult>; export declare function _suggestGetSend(context: Client, searchText: string, suggesterName: string, options?: SuggestGetOptionalParams): StreamableMethod; export declare function _suggestGetDeserialize(result: PathUncheckedResponse): Promise<SuggestDocumentsResult>; /** Suggests documents in the index that match the given partial query text. */ export declare function suggestGet(context: Client, searchText: string, suggesterName: string, options?: SuggestGetOptionalParams): Promise<SuggestDocumentsResult>; export declare function _getDocumentSend(context: Client, key: string, options?: GetDocumentOptionalParams): StreamableMethod; export declare function _getDocumentDeserialize(result: PathUncheckedResponse): Promise<LookupDocument>; /** Retrieves a document from the index. */ export declare function getDocument(context: Client, key: string, options?: GetDocumentOptionalParams): Promise<LookupDocument>; export declare function _searchPostSend(context: Client, options?: SearchPostOptionalParams): StreamableMethod; export declare function _searchPostDeserialize(result: PathUncheckedResponse): Promise<SearchDocumentsResult>; /** Searches for documents in the index. */ export declare function searchPost(context: Client, options?: SearchPostOptionalParams): Promise<SearchDocumentsResult>; export declare function _searchGetSend(context: Client, options?: SearchGetOptionalParams): StreamableMethod; export declare function _searchGetDeserialize(result: PathUncheckedResponse): Promise<SearchDocumentsResult>; /** Searches for documents in the index. */ export declare function searchGet(context: Client, options?: SearchGetOptionalParams): Promise<SearchDocumentsResult>; export declare function _getDocumentCountSend(context: Client, options?: GetDocumentCountOptionalParams): StreamableMethod; export declare function _getDocumentCountDeserialize(result: PathUncheckedResponse): Promise<number>; /** Queries the number of documents in the index. */ export declare function getDocumentCount(context: Client, options?: GetDocumentCountOptionalParams): Promise<number>; //# sourceMappingURL=operations.d.ts.map