This repository was archived by the owner on May 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 44![ Build] ( https://github.com/RediSearch/spring-redisearch/workflows/Build/badge.svg )
55[ ![ GitHub issues] ( https://img.shields.io/github/release/RediSearch/spring-redisearch.svg )] ( https://github.com/RediSearch/spring-redisearch/releases/latest )
66
7-
87# Spring RediSearch
8+
99[ ![ Forum] ( https://img.shields.io/badge/Forum-RediSearch-blue )] ( https://forum.redislabs.com/c/modules/redisearch/ )
1010[ ![ Discord] ( https://img.shields.io/discord/697882427875393627?style=flat-square )] ( https://discord.gg/xTbqgTB )
1111
1212Spring RediSearch provides access to RediSearch from Spring applications
1313
1414## Usage
15+
1516Add Spring RediSearch to your application dependencies, e.g. with Maven:
17+
1618```
1719<dependency>
1820 <groupId>com.redislabs</groupId>
@@ -22,15 +24,16 @@ Add Spring RediSearch to your application dependencies, e.g. with Maven:
2224```
2325
2426Inject and use RediSearchClient or StatefulRediSearchConnection:
27+
2528``` java
2629public class Example {
2730
28- @Autowired
29- StatefulRediSearchConnection<String , String > connection;
31+ @Autowired
32+ StatefulRediSearchConnection<String , String > connection;
3033
31- public void testSearch () {
32- connection. sync(). search(" music" , " Lalo Schifrin" );
33- }
34+ public void testSearch () {
35+ connection. sync(). search(" music" , " Lalo Schifrin" );
36+ }
3437
3538}
3639```
You can’t perform that action at this time.
0 commit comments