Example #1
0
def update_search():
    """Populate fulltext indexes"""
    for gene in Gene.all().run():
        AddGeneDocument(gene)
    for study in Study.all().run():
        AddStudyDocument(study)
    for disease in Disease.all().run():
        AddDiseaseDocument(disease)
    for snp in Snp.all().run():
        AddSNPDocument(snp)
    print "Fulltext docs updated"
Example #2
0
 def __init__(self, *args, **kwargs):
     super(studyList, self).__init__(*args, **kwargs)
     self._template = 'baserender.html'
     self.studyquery = PagedQuery(Study.all(), 10)
     self.count = self.studyquery.page_count()