Skip to content

Commit

Permalink
Merge pull request #114 from adulau/master
Browse files Browse the repository at this point in the history
Commit missing part to Fix #97
  • Loading branch information
adulau committed Dec 17, 2015
2 parents d421a5c + c8faeaf commit 71b3779
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/search_fulltext.py
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 71b3779

Please sign in to comment.