aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-06-24 20:36:07 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-06-24 20:36:07 +0200
commit2eccbbbf20576cbb5c1c37f988a1e2a4a53cca21 (patch)
treeb49c7265bcc5fd932a1c953de738ad2c3d6af091
parentFirst functional version of the indexed full-text search. (diff)
downloadnewspipe-2eccbbbf20576cbb5c1c37f988a1e2a4a53cca21.tar.gz
newspipe-2eccbbbf20576cbb5c1c37f988a1e2a4a53cca21.tar.bz2
newspipe-2eccbbbf20576cbb5c1c37f988a1e2a4a53cca21.zip
Added missing import.
-rw-r--r--source/search.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/search.py b/source/search.py
index dbad9513..fd412a7e 100644
--- a/source/search.py
+++ b/source/search.py
@@ -26,6 +26,8 @@ __revision__ = "$Date: 2013/06/24 $"
__copyright__ = "Copyright (c) Cedric Bonhomme"
__license__ = "GPLv3"
+import os
+
from whoosh.index import create_in, open_dir
from whoosh.fields import *
from whoosh.qparser import QueryParser
@@ -73,7 +75,7 @@ def search(term):
if __name__ == "__main__":
# Point of entry in execution mode.
- #create_index()
- results = search("Nothomb")
+ create_index()
+ """results = search("Nothomb")
for article in results:
- print(article) \ No newline at end of file
+ print(article)""" \ No newline at end of file
bgstack15