Commit c8faeaf0 authored by Alexandre Dulaunoy's avatar Alexandre Dulaunoy
Browse files

Commit missing part to Fix #97

parent a2ce748d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -25,9 +25,11 @@ from lib.Config import Configuration

indexpath = Configuration.getIndexdir()

#basepath = os.path.join(os.sep, *os.path.dirname(os.path.realpath(__file__)).rsplit('/')[:-1])
#print (os.path.split(os.path.join(basepath,indexpath)))
schema = Schema(title=TEXT(stored=True), path=ID(stored=True), content=TEXT)

ix = index.open_dir("indexdir")
ix = index.open_dir(indexpath)

argParser = argparse.ArgumentParser(description='Full text search for cve-search')
argParser.add_argument('-q', action='append', help='query to lookup (one or more)')