diff options
| author | Yuval Adam <_@yuv.al> | 2018-03-15 14:32:56 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2018-03-15 14:32:56 +0200 |
| commit | 06d9e7837dda38c9ee4ee19a5c01796da7a347c0 (patch) | |
| tree | 18f0ef4e9f7d9ec4874846f19dc0cf56d3686f84 /README.md | |
| parent | 39bc7a979a66a31c12162512c2301c5e43641326 (diff) | |
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -1 +1,30 @@ # Redisearch Wikipedia Test + +## Prerequisites + + - Redis server + - A compiled `redisearch.so` module + - Python 3 virtual env `pip install -r requirements.txt` + +## Usage + +Run Redis server + +```bash +$ redis-server --loadmodule /path/to/redisearch.so +``` + +Load random articles from wikipedia (infinite loop, kill the process once you have enough): + +```bash +$ python load_random.py +``` + +Search the index: + +```python +from redisearch import Client + +c = Client('wikipedia') +c.search('search term') +``` |
