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

Commit b62536f

Browse files
committed
updated README
1 parent c4ccbb8 commit b62536f

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,26 @@
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+
```

src/main/java/com/redislabs/springredisearch/RediSearchConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import lombok.Setter;
2525

2626
@Configuration
27-
@ConfigurationProperties(prefix = "redisearch")
27+
@ConfigurationProperties(prefix = "spring.redisearch")
2828
@Data
2929
public class RediSearchConfiguration {
3030

0 commit comments

Comments
 (0)