query = QueryParser("content", ix.schema).parse(x[1])
r = ix.searcher().search(query,limit=100)
for v in r:
print (str(int(x[0]))+","+x[1].replace(" ","")+","+v["path"].strip())
else:
argParser.print_help()
exit(1)
After Change
elif args.g:
import json
xr = ix.searcher().reader()
s = {"name": "cve-search", "children": []}
for x in xr.most_frequent_terms("content", 2000):
query = QueryParser("content", ix.schema).parse(x[1])
r = ix.searcher().search(query,limit=1000)
c = []