def search(query):
    search_index = index.get_or_create_index()
    parser = QueryParser("content", search_index.schema)
    query = parser.parse(query)
    result = search_index.searcher().search(query, limit=None)
    return [dict(element) for element in result]
Searchs elements.
dataset/ETHPy150Open OpenSlides/OpenSlides/openslides/utils/search.py/search