Search API Client for Scala

Features

  • Gives API access to all Algolia functionality, settings, advanced features, and ML/AI products
  • Maven, snapshots, sonatype, sbt
  • Domain Specific Locator (DSL) 
  • Future, JSON as a Case Class
  • Background retry strategy to ensure uptime
  • Batching via iterators to optimize number of network calls
  • Zero downtime reindexing feature
  • Asynchronous methods to target Algolia's API

Version

  • Supports Scala 2.11, 2.12

Related Integrations

  • InstantSearch for React, Vue, Angular, vanilla 
  • Autocomplete

Key links


Get started

INSTALL

1<dependency>
2    <groupId>com.algolia</groupId>
3    <artifactId>algoliasearch-scala_2.11</artifactId>
4    <version>[1,)</version>
5</dependency>
6
7// supports snapshots, sonotype, sbt

INDEX

1client.execute {
2  index into "index1" objects Seq(
3    Contact("myID1", "Jimmie", "Barninger"),
4    Contact("myID2", "Warren", "Speach")
5  )
6}

SEARCH

1​​client.execute {
2  search into "myIndex" query Query(
3      query = Some("query string"),
4      attributesToRetrieve = Some(Seq("firstname", "lastname")),
5      hitsPerPage = Some(50)
6  )
7}
Get started for freeExplore all developer docs

Built with Algolia

Frontend Tools
Templates & Starters

Ecommerce Starter

Starter for product search powered by Algolia InstantSearch

  • vuejs
  • react
  • angular
  • javascript