aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-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