Skip to content

Demo app using the full text search and auto-complete suggestions dictionary functions from RediSearch.

Notifications You must be signed in to change notification settings

alesandrog/RediSearchDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RediSearch Demo

Tools

RediSearch - Redis Secondary Index & Query Engine

Run with docker
docker run -p 6379:6379 redislabs/redisearch:latest

redisearch-py - Python client for RediSearch

Install using pip
pip3 install redisearch

Flask - Web Framework

Install using pip
pip3 install -U Flask

Usage

Connect to redis-cli

docker exec -it REDIS_CONTAINER /bin/bash
root@ee2797135b20:/data# redis-cli

Create the "userIndx" index in Redis

127.0.0.1:6379> FT.CREATE userIndx ON HASH PREFIX 1 user: SCHEMA username TEXT WEIGHT 5.0 name TEXT age NUMERIC

Start flask server, running by default on http://localhost:5000

python3 server.py

By now, you should be able to add and search users in the web app.

License

MIT

About

Demo app using the full text search and auto-complete suggestions dictionary functions from RediSearch.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published