Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

RediSearch/spring-redisearch

Repository files navigation

Spring RediSearch

License Latest Forums Discord

⚠️
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

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

}