What is Algolia

Algolia empowers modern developers to build world class search and discovery experiences without any DevOps.
Libraries with every major language and framework make it easy to enrich your users' experiences. 

API-first search and discovery for your .NET applications

Algolia C# .NET client library handles things like network retry, record batching, and zero downtime reindexing. It's production-ready, Open source and maintained by Algolia.

Get started

INSTALL (GET A FREE ACCOUNT HERE)


        
          
            

dotnet add package Algolia.Search

INDEX


        
          
            

List<Contact> contacts = new List<Contact>
{
    new Contact { ObjectID = "myID1", Firstname = "Jimmie", Lastname = "Barninger" },
    new Contact { ObjectID = "myID2", Firstname = "Warren", Lastname = "Speach" }
};

index.SaveObjects(contacts);

// Asynchronous
await index.SaveObjectsAsync(contacts);

SEARCH


        
          
            

SearchIndex index = client.SearchIndex("contacts");

// Synchronous
var result = index.Search<Contact>(new Query("query string"));

// Synchronous with settings
var result = index.Search<Contact>(new Query("query string")
{
  AttributesToRetrieve = new List<string> { "firstname", "lastname" }
  HitsPerPage = 50
});

// Asynchronous
var result = await index.SearchAsync<Contact>(new Query("query string"));

// Asynchronous with settings
var result = await index.SearchAsync<Contact>(new Query("query string")
{
    AttributesToRetrieve = new List<string> { "firstname", "lastname" }
    HitsPerPage = 50
});

Enable anyone to build great Search & Discovery