csharp_small_white Created with Sketch.

Getting Started

Supported platforms

Compatibilities:

  • .NET Framework 4.6
  • .NET Framework 4.6.2
  • .NET Core 1.0
  • .NET Core 1.1
  • .NETStandard 1.6
  • .NETStandard 1.3

Install

  • in you project, open the Package Manager Console (ToolsLibrary Package ManagerPackage Manager Console)
  • enter Install-Package Algolia.Search in the Package Manager Console

Init Index

To begin, you will need to initialize the client. In order to do this you will need your Application ID and API Key. You can find both on your Algolia account.

AlgoliaClient client = new AlgoliaClient("YourApplicationID", "YourAPIKey")

The api key that is displayed here is your ADMIN API Key. To maintain security, never use your ADMIN API Key on your frontend or share it with anyone. In your frontend, use the SEARCH ONLY API Key or any other key that has search only rights.