Home > Nivedita Chakraborty

ContentFul: create asset for the uploaded file using .Net Core

When we upload a file in contentful, then it must be linked with an asset, other wise the uploaded file cannot be viewed or linked to an entry. Below are the steps mentioned that must be followed serially: 1) Upload the file in contentful from Blob Storage public async Task UploadFile(string filename)

This Article is TAGGED in , , . Read more

Refresh datasource, reset and run indexer using .NET Core and RestSharp

In this article, we are going to demonstrate the steps to refresh the data source, reset and run indexer in an azure cognitive search using .Net Core and RestSharp. Since we are going to refresh the data source and the data source here we are referring to is

This Article is TAGGED in , , , . Read more

Log Errors and store in database using NLog

Nlog is an open source log platform through which we can log an activity of an application and store in file, database and even in azure blob storage. Install following NuGet packages in your project: 1. Install-Package NLog-Version 4.7.10 2. Install-Package NLog.Web.AspNetCore- Version 4.12.0 3. Install-Package Microsoft.Data.SqlClient- Version 3.0.0 4. Install-Package Microsoft.Extensions.Logging.Console- Version 5.0.0

This Article is TAGGED in . Read more

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