Skip to content

Commit

Permalink
Commit missing part to Fix adulau#97
Browse files Browse the repository at this point in the history
  • Loading branch information
adulau committed Dec 17, 2015
1 parent a2ce748 commit c8faeaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/search_fulltext.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@

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)')
Expand Down

0 comments on commit c8faeaf

Please sign in to comment.