This repository was archived by the owner on May 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +27
-3
lines changed
src/main/java/com/redislabs/springredisearch Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 1- # spring-redisearch
2- Provides support for RediSearch in Spring
1+ # Spring RediSearch
2+ Spring RediSearch provides access to RediSearch from Spring applications
3+
4+ ## Usage
5+ Add Spring RediSearch to your application dependencies, e.g. with Maven:
6+ ```
7+ <dependency>
8+ <groupId>com.redislabs</groupId>
9+ <artifactId>spring-redisearch</artifactId>
10+ <version>1.0.7</version>
11+ </dependency>
12+ ```
13+
14+ Inject and use RediSearchClient or StatefulRediSearchConnection:
15+ ``` java
16+ public class Example {
17+
18+ @Autowired
19+ StatefulRediSearchConnection<String , String > connection;
20+
21+ public void testSearch () {
22+ connection. sync(). search(" myIndex" , " Lalo Schifrin" , SearchOptions . builder(). build());
23+ }
24+
25+ }
26+ ```
Original file line number Diff line number Diff line change 2424import lombok .Setter ;
2525
2626@ Configuration
27- @ ConfigurationProperties (prefix = "redisearch" )
27+ @ ConfigurationProperties (prefix = "spring. redisearch" )
2828@ Data
2929public class RediSearchConfiguration {
3030
You can’t perform that action at this time.
0 commit comments