Skip to content
master
Switch branches/tags
Code

Spring RediSearch

License Latest Forums Discord

Spring RediSearch provides access to RediSearch from Spring applications

Usage

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");
    }

}