示例#1
0
def index_all_sections(skip=0):
    """
    Step through refs of all sections of available text and index each. 
    """
    global doc_count
    doc_count = 0

    refs = texts.generate_refs_list()

    if skip:
        refs = refs[skip:]

    for i in range(skip, len(refs)):
        index_text(refs[i])
        if i % 200 == 0:
            print "Indexed Ref #%d" % i

    print "Indexed %d documents." % doc_count
示例#2
0
def index_all_sections():
    create_index()
    refs = texts.generate_refs_list()
    for ref in refs:
        index_text(ref)
    print "Indexed %d documents." % doc_count
示例#3
0
def index_all_sections():
    create_index()
    refs = texts.generate_refs_list()
    for ref in refs:
        index_text(ref)
    print "Indexed %d documents." % doc_count