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 Android apps

Utilize the Algolia open-source Kotlin client to index your data, configure your search, add analytics and much more.  

Algolia maintains and supports the Kotlin client and highly recommends you use it in your Android applications.

Get started

INSTALL (GET A FREE ACCOUNT HERE.)


        
          
            

// Gradle
dependencies {
    // [...]
    implementation 'com.algolia:algoliasearch-android:3.+'
    // This will automatically update to the latest v3 release when you build your project
}

INDEX


        
          
            

List<JSONObject> array = new ArrayList<JSONObject>();
array.add(
  new JSONObject()
    .put("firstname", "Jimmie")
    .put("lastname", "Barninger")
    .put("objectID", "myID")
);
array.add(
  new JSONObject()
    .put("firstname", "Warren")
    .put("lastname", "Speach")
    .put("objectID", "myID2")
);

index.saveObjectsAsync(new JSONArray(array), null);

SEARCH


        
          
            

Index index = client.getIndex("contacts");

// Add settings
Query query = new Query("query string")
  .setAttributesToRetrieve("firstname", "lastname")
  .setHitsPerPage(50);

// Perform search
index.searchAsync(query, new CompletionHandler() {
  @Override
  public void requestCompleted(JSONObject content, AlgoliaException error) {
    // [...]
  }
});

Enable anyone to build great Search & Discovery