From bec8150c93a640ac4b6d1cebc86bd721dfdd6b59 Mon Sep 17 00:00:00 2001 From: yvesf Date: Sat, 20 Nov 2010 02:12:50 +0100 Subject: update INSTALL help; rename index->indexer; prettify web.py --- INSTALL | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 INSTALL (limited to 'INSTALL') diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..39d4774 --- /dev/null +++ b/INSTALL @@ -0,0 +1,33 @@ + +Create a virtualenv + virtualenv create booksearch_env + cd booksearch_env + # activate this virtualenv + . ./bin/activate + +Install dependencies + easy_install pip + pip install whoosh + pip install pypdf + pip install flask + +( Clone ) + git clone http://xapek.org/~yvesf/repos/booksearch.git + cd booksearch + +Create index + python indexer.py ~/my_books + +Test index + python query.py + query> test + Term('content', 'test') + Match in /home/XXXXX6-4.pdf + Match in /home/XXXXX6-4.pdf + 2 results + query> + +Run Webapp + python web.py + * Running on http://0.0.0.0:5000/ + * Restarting with reloader... -- cgit v1.2.1