Ejemplo n.º 1
0
def update_elastic_index():
    results = get_projects()
    IndexEngine.delete_mapping('pull')
    IndexEngine.delete_mapping('issue')
    for proj in results:
        try:
            IssuePRSearch.index_a_project(proj)
        except:
            pass
Ejemplo n.º 2
0
def update_elastic_index():
    results = get_projects()
    IndexEngine.delete_mapping('pull')
    IndexEngine.delete_mapping('issue')
    for proj in results:
        try:
            IssuePRSearch.index_a_project(proj)
        except:
            pass
Ejemplo n.º 3
0
 def index_an_object(cls, serial, data):
     return IndexEngine.create_a_index(cls.type_name, serial, data)