Search API Client for Scala

Scala

Algolia Search API client for Scala, v1

Sign up

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

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
    1
    client.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 free
Explore developer docs