Skip to main content
  • C#
  • Dart
  • Go
  • Java
  • JavaScript
  • Kotlin
  • PHP
  • Python
  • Ruby
  • Scala
  • Swift
The Search API client is part of the Algolia.Search package. To install this package, run:
dotnet add package Algolia.Search
To use the Search API client, import these namespaces:
C#
using Algolia.Search.Clients;
using Algolia.Search.Http;
using Algolia.Search.Models.Search;
To create an instance of the client:
C#
var client = new SearchClient(
  new SearchConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
);

Indices

Algolia automatically creates a new index when you add records, rules, or synonyms, or when you change settings for an index that doesn’t yet exist. You don’t need to create indices explicitly. Don’t include sensitive or personally identifiable information (PII) in your index names. They appear in network requests and are publicly visible.
I