Initializes a new instance of the SearchClient class.
Example usage:
const { SearchClient, AzureKeyCredential } = require("@azure/search-documents");
const client = new SearchClient(
"<endpoint>",
"<indexName>",
new AzureKeyCredential("<Admin Key>");
);
Example usage:
const { SearchClient, AzureKeyCredential } = require("@azure/search-documents");
const client = new SearchClient(
"<endpoint>",
"<indexName>",
new AzureKeyCredential("<Admin Key>");
);
Client Api Version.
The endpoint URL of the search service.
The name of the index.
The API version to use when communicating with the service.
The endpoint of the search service
The name of the index
Based on a partial searchText from the user, return a list of potential completion strings based on a specified suggester.
The search text on which to base autocomplete results.
The name of the suggester as specified in the suggesters collection that's part of the index definition.
Options to the autocomplete operation.
Delete a set of documents.
Documents to be deleted.
Additional options.
Delete a set of documents.
The name of their primary key in the index.
The primary key values of documents to delete.
Additional options.
Retrieve a particular document from the index by key.
The primary key value of the document
Additional options
Retrieves the number of documents in the index.
Options to the count operation.
Gets an instance of SearchIndexingBufferedSender.
SearchIndexingBufferedSender Options
Perform a set of index modifications (upload, merge, mergeOrUpload, delete)
for the given set of documents.
This operation may partially succeed and not all document operations will
be reflected in the index. If you would like to treat this as an exception,
set the throwOnAnyFailure
option to true.
For more details about how merging works, see: https://docs.microsoft.com/en-us/rest/api/searchservice/AddUpdate-or-Delete-Documents
An array of actions to perform on the index.
Additional options.
Update a set of documents in the index. For more details about how merging works, see https://docs.microsoft.com/en-us/rest/api/searchservice/AddUpdate-or-Delete-Documents
The updated documents.
Additional options.
Update a set of documents in the index or upload them if they don't exist. For more details about how merging works, see https://docs.microsoft.com/en-us/rest/api/searchservice/AddUpdate-or-Delete-Documents
The updated documents.
Additional options.
Performs a search on the current index given the specified arguments.
Text to search
Options for the search operation.
Returns a short list of suggestions based on the searchText and specified suggester.
The search text to use to suggest documents. Must be at least 1 character, and no more than 100 characters.
The name of the suggester as specified in the suggesters collection that's part of the index definition.
Options for the suggest operation
Upload an array of documents to the index.
The documents to upload.
Additional options.
Generated using TypeDoc
Class used to perform operations against a search index, including querying documents in the index as well as adding, updating, and removing them.