MCPcopy Create free account
hub / github.com/algolia/algoliasearch-client-java

github.com/algolia/algoliasearch-client-java

Chat with this repo
repository ↗ · DeepWiki ↗ · release 4.41.2 ↗ · + Follow · compare 3 versions
12,698 symbols 21,757 edges 886 files 5,625 documented · 44% updated 5d ago3.16.15 · 2026-07-10★ 5218 open issues

Browse by type

Functions 11,440 Types & classes 1,258
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Algolia for Java

The perfect starting point to integrate Algolia within your Java project

<a href="https://central.sonatype.com/artifact/com.algolia/algoliasearch"><img src="https://img.shields.io/maven-central/v/com.algolia/algoliasearch.svg" alt="CircleCI"></img></a>
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="Licence"></img></a>

DocumentationCommunity ForumStack OverflowReport a bugSupport

✨ Features

  • Support Java 8 and above
  • Asynchronous and synchronous methods to interact with Algolia's API
  • Thread-safe clients
  • Typed requests and responses

💡 Getting Started

To get started, add the algoliasearch-client-java dependency to your project, either with Maven:

<dependency>
  <groupId>com.algolia</groupId>
  <artifactId>algoliasearch</artifactId>
  <version>[4,)</version>
</dependency>

or Gradle:

dependencies {
  implementation 'com.algolia:algoliasearch:4.+'
}

You can now import the Algolia API client in your project and play with it.

import com.algolia.api.SearchClient;
import com.algolia.model.search.*;

SearchClient client = new SearchClient("YOUR_APP_ID", "YOUR_API_KEY");

// Add a new record to your Algolia index
var response = client.saveObject("<YOUR_INDEX_NAME>", Map.of("objectID", "id", "test", "val"));

// Poll the task status to know when it has been indexed
client.waitForTask("<YOUR_INDEX_NAME>", response.getTaskID());

// Fetch search results, with typo tolerance
client.search(
  new SearchMethodParams()
    .setRequests(List.of(new SearchForHits().setIndexName("<YOUR_INDEX_NAME>").setQuery("<YOUR_QUERY>").setHitsPerPage(50))),
  Hit.class
);

For full documentation, visit the Algolia Java API Client.

❓ Troubleshooting

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. You can also open a GitHub issue

Contributing

This repository hosts the code of the generated Algolia API client for Java, if you'd like to contribute, head over to the main repository. You can also find contributing guides on our documentation website.

📄 License

The Algolia Java API Client is an open-sourced software licensed under the MIT license.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 11,440
Class 1,007
Enum 144
Interface 107

Languages

Java100%

Modules by API surface

algoliasearch/src/main/java/com/algolia/api/SearchClient.java278 symbols
algoliasearch/src/main/java/com/algolia/api/IngestionClient.java241 symbols
algoliasearch/src/main/java/com/algolia/model/recommend/RecommendSearchParams.java200 symbols
algoliasearch/src/main/java/com/algolia/model/recommend/FallbackParams.java198 symbols
algoliasearch/src/main/java/com/algolia/model/search/SearchForFacets.java179 symbols
algoliasearch/src/main/java/com/algolia/model/search/SearchForHits.java175 symbols
algoliasearch/src/main/java/com/algolia/model/search/ConsequenceParams.java171 symbols
algoliasearch/src/main/java/com/algolia/model/search/BrowseParamsObject.java169 symbols
algoliasearch/src/main/java/com/algolia/api/AgentStudioClient.java169 symbols
algoliasearch/src/main/java/com/algolia/model/search/SearchParamsObject.java167 symbols
algoliasearch/src/main/java/com/algolia/model/search/SettingsResponse.java151 symbols
algoliasearch/src/main/java/com/algolia/model/search/IndexSettings.java149 symbols

For agents

$ claude mcp add algoliasearch-client-java \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page