Initializes a new instance of the SearchIndexClient class.
Example usage:
const { SearchIndexClient, SearchApiKeyCredential } = require("@azure/search");
const client = new SearchIndexClient(
"<endpoint>",
"<indexName>",
new SearchApiKeyCredential("<Admin Key>");
);
Example usage:
const { SearchIndexClient, SearchApiKeyCredential } = require("@azure/search");
const client = new SearchIndexClient(
"<endpoint>",
"<indexName>",
new SearchApiKeyCredential("<Admin Key>");
);
Subscription credentials which uniquely identify client subscription.
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.
Options to the autocomplete operation.
Retrieves the number of documents in the index.
Options to the count operation.
Delete a set of documents by their primary key.
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
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.
Performs a search on the current index given the specified arguments.
Options for the search operation.
Returns a short list of suggestions based on the searchText and specified suggester.
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.