summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2018-03-15 14:32:56 +0200
committerYuval Adam <_@yuv.al>2018-03-15 14:32:56 +0200
commit06d9e7837dda38c9ee4ee19a5c01796da7a347c0 (patch)
tree18f0ef4e9f7d9ec4874846f19dc0cf56d3686f84 /README.md
parent39bc7a979a66a31c12162512c2301c5e43641326 (diff)
Update filesHEADmaster
Diffstat (limited to 'README.md')
-rw-r--r--README.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/README.md b/README.md
index 85d821b..8c7422a 100644
--- a/README.md
+++ b/README.md
@@ -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')
+```