def search(self, schema_name, fields_to_load, mapped_query, limit):
        where, params = mapped_query
        self.query = 'select id as docid, %s from %s where %s limit %s' % (
            ', '.join(field for field in fields_to_load),
            schema_name, where, limit
        )
        self.params = params
``fields_to_load`` is  a list of field names.
dataset/ETHPy150Open Net-ng/kansha/kansha/services/search/sqliteengine.py/IndexCursor.search