diff options
author | yvesf <yvesf-git@xapek.org> | 2010-11-20 02:12:50 +0100 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2010-11-20 02:12:50 +0100 |
commit | bec8150c93a640ac4b6d1cebc86bd721dfdd6b59 (patch) | |
tree | cc7e02b211afa6ba7ba11432e00124dc617ce760 /INSTALL | |
parent | 966a17b12c9deab35ef0a804d9fa1faea9c8042d (diff) | |
download | booksearch-bec8150c93a640ac4b6d1cebc86bd721dfdd6b59.tar.gz booksearch-bec8150c93a640ac4b6d1cebc86bd721dfdd6b59.zip |
update INSTALL help; rename index->indexer; prettify web.py
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -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... |