Get started

INSTALL


        
          
            

<dependency>
    <groupId>com.algolia</groupId>
    <artifactId>algoliasearch-scala_2.11</artifactId>
    <version>[1,)</version>
</dependency>

// supports snapshots, sonotype, sbt

INDEX


        
          
            

client.execute {
  index into "index1" objects Seq(
    Contact("myID1", "Jimmie", "Barninger"),
    Contact("myID2", "Warren", "Speach")
  )
}

SEARCH


        
          
            

​​client.execute {
  search into "myIndex" query Query(
      query = Some("query string"),
      attributesToRetrieve = Some(Seq("firstname", "lastname")),
      hitsPerPage = Some(50)
  )
}

Enable anyone to build great Search & Discovery