Home > Azure > Azure API

AZURE COGNITIVE SEARCH: Autocomplete the search keyword through POSTMAN

AUTOCOMPLETE The Autocomplete API finishes a partially typed query input using existing terms in the search index for use in a secondary query Method: POST URL: https://[name of the search service].windows.net/indexes/[name of the index]/ autocomplete/search?api-version=[api version] Authorization: Type – API Key Vale- [Value of the Primary Key] Add to- Header Headers: Content-Type- “application/json” API-Key – [value of the api

This Article is TAGGED in , , . Read more

AZURE COGNITIVE SEARCH: Text Search through POSTMAN

Method: GET URL: https://[name of the search service].search.windows.net/indexes/[name of the index]/docs?api-version=[api version]&search=[search keyword] Authorization: Type – API Key Vale- [Value of the Primary Key] Add to- Header Headers: Content-Type- “application/json” API-Key – [value of the api key] Params: search- [search keyword] Body: Not required Response: 200 OK

This Article is TAGGED in , , , . Read more

AZURE COGNTIVE SEARCH: Reset and Run Indexer

Creating an indexer adds it to your search service and runs it. If the request is successful, the index will be populated with searchable content from the data source. A reset might be required if the data source schema has changed, or if you are modifying the change detection policy.

This Article is TAGGED in , , , , . Read more

AZURE COGNITIVE SEARCH: Create Indexer through POSTMAN

Indexers use a predefined data source and index to establish an indexing pipeline that extracts and serializes source data, passing it to a search service for data ingestion. Method: POST URL: https://[name of the search service].search.windows.net/indexers?api-version=[api version] Authorization: Type – API Key Vale- [Value of the Primary Key] Add to- Header Headers: Content-Type- “application/json” API-Key – [value of the api key] Body: {  

This Article is TAGGED in , , . Read more

AZURE COGNITIVE SEARCH: Create Index through Postman

An index is the primary means of organizing and searching documents in Azure Cognitive Search, similar to how a table organizes records in a database. An index is defined by a schema and saved to the search service. Method: POST URL: https://[name of the search service].search.windows.net/indexes?api-version=[api version] Authorization: Type – API Key Vale- [Value of

This Article is TAGGED in , , , . Read more

AZURE COGNITIVE SEARCH: Create Datasource through POSTMAN

To begin with Azure Cognitive Search, first we need to create an azure cognitive search service through portal and also keep the API Keys in hand as both the name of the search service and primary api key are required for every api calls through postman. Creating datasource is one

This Article is TAGGED in , , , . Read more

AZURE COGNITIVE SEARCH: Apply Filtered Search through POSTMAN

In contrast with full text search, a filter value or expression only returns a strict match. Faceted navigation uses a filter to pass back the facet category selected by the user. The "select" parameter is used to specify which fields to include in a result set, effectively trimming the response before

This Article is TAGGED in , , . Read more

AZURE COGNITIVE SEARCH: Custom Search- Search Based on one particular field

When we search a particular text or keyword and want that keyword to be searched within the particular fields only, then we must mention the fields in the "searchFields" in the body. The list of comma-separated field names to search for the specified text. Target fields must be marked as

This Article is TAGGED in , , , , . Read more

Get access token to call Microsoft Azure api

We require Realm URL, Client ID, Client Secret. Using above key we can fetch the access token as follows.   var realm = "RealmURL"; var authContext = new AuthenticationContext("AuthURL"); var userCreds = new ClientCredential("ClientId", "ClientSecret"); authenticationResult = authContext.AcquireTokenAsync(realm, userCreds).Result; if (authenticationResult != null && !string.IsNullOrEmpty(authenticationResult.AccessToken)) accessToken = authenticationResult.AccessToken;  

This Article is TAGGED in . Read more