Sugestões

Produtos e Recursos

Comece agora

INSTALAR


        
          
            

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

// supports snapshots, sonotype, sbt

ÍNDICE


        
          
            

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

PESQUISAR


        
          
            

​​client.execute {
realizar pesquisa no "myIndex" com a consulta Query(
query = Some("query string"),
attributesToRetrieve = Some(Seq("firstname", "lastname")),
hitsPerPage = Some(50)
)
}