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 +39
-39
lines changed Expand file tree Collapse file tree 2 files changed +39
-39
lines changed Original file line number Diff line number Diff line change 1+ = Spring RediSearch
2+
3+ ifdef::badges[]
4+ image:https://img.shields.io/github/license/RediSearch/spring-redisearch.svg["License", link="https://github.com/RediSearch/spring-redisearch"]
5+ image:https://img.shields.io/github/release/RediSearch/spring-redisearch.svg["Latest", link="https://github.com/RediSearch/spring-redisearch/releases/latest"]
6+ endif::[]
7+
8+ image:https://img.shields.io/badge/Forum-RediSearch-blue["Forums", link="https://forum.redislabs.com/c/modules/redisearch/"]
9+ image:https://img.shields.io/discord/697882427875393627?style=flat-square["Discord", link="https://discord.gg/xTbqgTB"]
10+
11+ Spring RediSearch provides access to RediSearch from Spring applications
12+
13+ == Usage
14+
15+ Add Spring RediSearch to your application dependencies, e.g. with Maven:
16+
17+ ```
18+ <dependency>
19+ <groupId>com.redislabs</groupId>
20+ <artifactId>spring-redisearch</artifactId>
21+ <version>x.y.z</version>
22+ </dependency>
23+ ```
24+
25+ Inject and use RediSearchClient or StatefulRediSearchConnection:
26+
27+ [source,java]
28+ ----
29+ public class Example {
30+
31+ @Autowired
32+ StatefulRediSearchConnection<String, String> connection;
33+
34+ public void testSearch() {
35+ connection.sync().search("music", "Lalo Schifrin");
36+ }
37+
38+ }
39+ ----
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments