summaryrefslogtreecommitdiff
path: root/README.md
blob: 8c7422a3b13e086382eb0906934a8d041a7bf711 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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')
```