<dependency>
<groupId>com.redislabs</groupId>
<artifactId>spring-redisearch</artifactId>
<version>3.0.1</version>
</dependency>
spring:
redis:
host: 192.168.20.3
RediSearchCommands<String, String> sync = statefulRediSearchConnection.sync();
CreateOptions<String,String> book = CreateOptions.<String,String>builder().prefix("Book").build();
Field<String> title = Field.text("name").build();
Field<String> author = Field.text("author").build();
sync.create("books-index",book,title,author);
SearchResults<String, String> search = redisSearchCommands.search("books-index", fuzzy);
https://www.educba.com/spring-boot-commandlinerunner/
https://redis.io/commands/ft.create/