|
Spring RediSearch has been merged into multi-module client LettuceMod. Updates will now happen in LettuceMod. |
Spring RediSearch provides access to RediSearch from Spring applications
Add Spring RediSearch to your application dependencies, e.g. with Maven:
<dependency>
<groupId>com.redislabs</groupId>
<artifactId>spring-redisearch</artifactId>
<version>x.y.z</version>
</dependency>
Inject and use RediSearchClient or StatefulRediSearchConnection:
public class Example {
@Autowired
StatefulRediSearchConnection<String, String> connection;
public void testSearch() {
connection.sync().search("music", "Lalo Schifrin");
}
}