diff options
Diffstat (limited to 'web.py')
-rw-r--r-- | web.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,16 +1,16 @@ #!/usr/bin/python2.6 # coding: utf-8 +from StringIO import StringIO from whoosh.index import open_dir from whoosh.qparser import QueryParser import whoosh.fields as fields import whoosh.analysis as analysis -from whoosh import highlight +import whoosh.highlight as highlight import flask -from flask import Flask import pyPdf -from StringIO import StringIO import werkzeug -app = Flask("booksearch") + +app = flask.Flask("booksearch") index = open_dir(u"index", mapped=False) searcher = index.searcher() |