pyndri-flask is an example application that demonstrates how pyndri can be used to serve an Indri index using Flask.
It can be used as the basis for a search engine or as a convenient way to navigate an index for Information Retrieval research.
pyndri-flask has the same requirements as pyndri and it is advised to first follow the instructions to install pyndri before attempting to install pyndri-flask.
You will also need to install Flask:
pip install Flask==0.12.2
After installing Flask, pyndri-flask can be started as follows. First, change your current working directory to the repository root and then execute:
INDEX_PATH=<PATH TO INDRI INDEX> \
FLASK_APP=app flask run -h 0.0.0.0 -p 8888
This will start an instance of pyndri-flask that listens to port 8888 on all network interfaces configured on your machine. It will return results of the index referenced by INDEX_PATH
.
If you use pyndri to produce results for your scientific publication, please refer to our ECIR 2017 paper.
@inproceedings{VanGysel2017pyndri,
title={Pyndri: a Python Interface to the Indri Search Engine},
author={Van Gysel, Christophe and Kanoulas, Evangelos and de Rijke, Maarten},
booktitle={ECIR},
volume={2017},
year={2017},
organization={Springer}
}
pyndri-flask and pyndri are licensed under the MIT license. Please note that Indri is licensed separately. If you modify pyndri-flask in any way, please link back to this repository.