def reload_database( self ): # {{{
    # create the xapian handlers
    self.db = xapian.WritableDatabase( self.database,xapian.DB_CREATE_OR_OPEN )

    self.qp = xapian.QueryParser()
    self.qp.set_database(self.db) # needed for incremental search
    self.qp.set_stemmer( xapian.Stem( self.language ) )
    self.qp.set_stemming_strategy( self.qp.STEM_SOME )
    self.qp.add_prefix( "title","S" )

    self.tg = xapian.TermGenerator()
    self.tg.set_stemmer( xapian.Stem( self.language ) )
    try:
        self.tg.set_stemming_strategy( self.tg.STEM_SOME )
    except __HOLE__:
        pass

    self.e  = xapian.Enquire(self.db)
    self.sorted_e = xapian.Enquire(self.db)
    # Value 2 is the lowercase form of the title
    self.sorted_e.set_sort_by_value(2,False)

  #}}}
dataset/ETHPy150Open cwoac/nvim/python/nvim.py/Nvimdb.reload_database