All Projects → algolia → Algoliasearch Client Android

algolia / Algoliasearch Client Android

Licence: mit
Algolia Search API Client for Android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Algoliasearch Client Android

Instantsearch Android
A library of widgets and helpers to build instant-search applications on Android.
Stars: ✭ 129 (+40.22%)
Mutual labels:  algolia, search, search-engine, open-source
Algoliasearch Client Php
⚡️ A fully-featured and blazing-fast PHP API client to interact with Algolia.
Stars: ✭ 565 (+514.13%)
Mutual labels:  api-client, algolia, search, search-engine
Instantsearch Ios
⚡️ A library of widgets and helpers to build instant-search applications on iOS.
Stars: ✭ 498 (+441.3%)
Mutual labels:  algolia, search, search-engine, open-source
Flexsearch
Next-Generation full text search library for Browser and Node.js
Stars: ✭ 8,108 (+8713.04%)
Mutual labels:  search, search-engine, open-source
Github Awesome Autocomplete
Add instant search capabilities to GitHub's search bar
Stars: ✭ 1,015 (+1003.26%)
Mutual labels:  algolia, search, search-engine
Algoliasearch Client Go
⚡️ A fully-featured and blazing-fast Go API client to interact with Algolia.
Stars: ✭ 147 (+59.78%)
Mutual labels:  api-client, algolia, search
Algoliasearch Client Javascript
⚡️ A fully-featured and blazing-fast JavaScript API client to interact with Algolia.
Stars: ✭ 907 (+885.87%)
Mutual labels:  api-client, algolia, search
Checkout Sdk Node
Checkout.com SDK for Node.js. Documentation here:
Stars: ✭ 28 (-69.57%)
Mutual labels:  api-client, sdk
App Search Node
Elastic App Search Official Node.js Client
Stars: ✭ 29 (-68.48%)
Mutual labels:  api-client, search
Algolia Webcrawler
Simple node worker that crawls sitemaps in order to keep an algolia index up-to-date
Stars: ✭ 40 (-56.52%)
Mutual labels:  algolia, search-engine
Rats Search
BitTorrent P2P multi-platform search engine for Desktop and Web servers with integrated torrent client.
Stars: ✭ 1,037 (+1027.17%)
Mutual labels:  search, search-engine
App Search Php
Elastic App Search Official PHP Client
Stars: ✭ 48 (-47.83%)
Mutual labels:  api-client, search
Instantsearch Ios Examples
Example apps built with InstantSearch iOS
Stars: ✭ 55 (-40.22%)
Mutual labels:  algolia, search
Opensse
Open Sketch Search Engine- 3D object retrieval based on sketch image as input
Stars: ✭ 883 (+859.78%)
Mutual labels:  search, search-engine
Annwvyn
Annwvyn C++ Open Source designed-for-VR game engine and application developement framework
Stars: ✭ 34 (-63.04%)
Mutual labels:  open-source, sdk
Better Search
Better Search WordPress plugin
Stars: ✭ 9 (-90.22%)
Mutual labels:  search, search-engine
Blast
Blast is a full text search and indexing server, written in Go, built on top of Bleve.
Stars: ✭ 934 (+915.22%)
Mutual labels:  search, search-engine
Dart algolia
[Unofficial] Algolia is a pure dart SDK, wrapped around Algolia REST API for easy implementation for your Flutter or Dart projects.
Stars: ✭ 70 (-23.91%)
Mutual labels:  algolia, sdk
Awesome Solr
A curated list of Awesome Apache Solr links and resources.
Stars: ✭ 69 (-25%)
Mutual labels:  search, search-engine
Russianpost
SDK для работы с API Почты России (pochta.ru)
Stars: ✭ 72 (-21.74%)
Mutual labels:  api-client, sdk

Algolia Search API Client for Android

Our Android API client is legacy, and in maintenance mode only. We recommend using our Kotlin API client which is better suited for Android development.

Algolia Search is a hosted search engine capable of delivering realtime results from the first keystroke.

The Algolia Search API Client for Android lets you easily use the Algolia Search REST API from your Android code.

Build Status GitHub version

Note: If you were using version 2.x of our Android client, read the migration guide to version 3.x.

You can browse the automatically generated reference documentation.

This project is open-source under the MIT License.

Contributing

Your contributions are welcome! Please use our formatting configuration to keep the coding style consistent.

API Documentation

You can find the full reference on Algolia's website.

  1. Contributing

  2. Install

  3. Quick Start

  4. Push data

  5. Configure

  6. Search

  7. List of available methods

  8. Getting Help

  9. List of available methods

Getting Started

Install

Install the Android client by adding the following dependency to your Gradle build file:

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

Quick Start

In 30 seconds, this quick start tutorial will show you how to index and search objects.

Initialize the client

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

Client client = new Client("YourApplicationID", "YourAPIKey");
Index index = client.getIndex("your_index_name");

Warning: If you are building a native app on mobile, make sure not to include the search API key directly in the source code. You should instead consider fetching the key from your servers during the app's startup.

Push data

Without any prior configuration, you can start indexing contacts in the contacts index using the following code:

Index index = client.initIndex("contacts");
index.addObjectAsync(new JSONObject()
     .put("firstname", "Jimmie")
     .put("lastname", "Barninger")
     .put("followers", 93)
     .put("company", "California Paint"), null);
index.addObjectAsync(new JSONObject()
     .put("firstname", "Warren")
     .put("lastname", "Speach")
     .put("followers", 42)
     .put("company", "Norwalk Crmc"), null);

Configure

You can customize settings to fine tune the search behavior. For example, you can add a custom ranking by number of followers to further enhance the built-in relevance:

JSONObject settings = new JSONObject().append("customRanking", "desc(followers)");
index.setSettingsAsync(settings, null);

You can also configure the list of attributes you want to index by order of importance (most important first).

Note: Algolia is designed to suggest results as you type, which means you'll generally search by prefix. In this case, the order of attributes is crucial to decide which hit is the best.

JSONObject settings = new JSONObject()
      .put("searchableAttributes", "lastname")
      .put("searchableAttributes", "firstname")
      .put("searchableAttributes", "company");
index.setSettingsAsync(settings, null);

Search

You can now search for contacts by firstname, lastname, company, etc. (even with typos):

CompletionHandler completionHandler = new CompletionHandler() {
    @Override
    public void requestCompleted(JSONObject content, AlgoliaException error) {
        // [...]
    }
};
// Search for a first name
index.searchAsync(new Query("jimmie"), completionHandler);
// Search for a first name with typo
index.searchAsync(new Query("jimie"), completionHandler);
// Search for a company
index.searchAsync(new Query("california paint"), completionHandler);
// Search for a first name and a company
index.searchAsync(new Query("jimmie paint"), completionHandler);

List of available methods

Personalization

Search

Indexing

Settings

Manage indices

API keys

Synonyms

Query rules

A/B Test

Insights

MultiClusters

Advanced

Getting Help

  • Need help? Ask a question to the Algolia Community or on Stack Overflow.
  • Encountering an issue? Before reaching out to support, we recommend heading to our FAQ where you will find answers for the most common issues and gotchas with the client.
  • Found a bug? You can open a GitHub issue.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].