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

Commit b081633

Browse files
committed
fixed formatting
1 parent cf48d19 commit b081633

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
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

1212
Spring RediSearch provides access to RediSearch from Spring applications
1313

1414
## Usage
15+
1516
Add 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

2426
Inject and use RediSearchClient or StatefulRediSearchConnection:
27+
2528
```java
2629
public 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
```

0 commit comments

Comments
 (0)