0c11680229ec321925d9b244a72ea5e06a7c7a6f,search_fulltext.py,,,#,37

Before Change


        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 = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cve-search/cve-search
Commit Name: 0c11680229ec321925d9b244a72ea5e06a7c7a6f
Time: 2013-03-30
Author: a@foo.be
File Name: search_fulltext.py
Class Name:
Method Name:


Project Name: lingpy/lingpy
Commit Name: 02b1345a9b521639f8966f35b6103fcdecdb8f91
Time: 2013-09-16
Author: mattis.list@posteo.de
File Name: setup.py
Class Name:
Method Name:


Project Name: etal/cnvkit
Commit Name: f4be96a9bc73aa5341a5cf6b99d13573621904c2
Time: 2015-07-27
Author: eric.talevich@gmail.com
File Name: cnvlib/segmentation/__init__.py
Class Name:
Method Name: do_segmentation