A Spring Boot App showing how to implement faceted full-text search and autocomplete with RediSearch using the JRediSearch client library.
Prerequisites:
- Java 11
- Maven 3.2+
- Docker
- Redis + Modules 6.0.1 or greater
- RIOT File
NOTE: If you're not on Mac or Windows, you may need to install Docker Compose as well.
To install this example application, run the following commands:
git clone git@github.com:redis-developer/jredisearch-spring-demo.git --recurse-submoduleYou can also import the code straight into your IDE:
cd jredisearch-spring-demo/docker
docker-compose upriot-file import-dump data/articles_authors.json./mvnw clean spring-boot:runOn your browser, Postman or cURL try:
http://localhost:8080/api/articles/search/?q=chicken
On your browser, Postman or cURL try:
http://localhost:8080/api/articles/authors/?q=ja
Quick Tutorial on Redis' Powerful Modules:
The following links on Redis and Java may also be helpful:
Please post any questions and comments on the Redis Discord Server, and remember to visit our Redis Developer Page for awesome tutorials, project and tips. You can also email me bsb@redislabs.com.
Created by Brian Sam-Bodden @ Redis Labs