def search(self, user_query):
        # Exchange some speed by searching for variations of what the user
        # queried for to improve search quality.
        parser = QueryParser('content', schema=self._ix.schema,
                             termclass=query.Variations)
        q = parser.parse(u'{0}'.format(user_query))

        results = []
        with self._ix.searcher() as searcher:
            hits = searcher.search(q)
            hits.fragmenter = self._context_fragmenter
            for hit in hits:
                results.append(SearchResult(hit['path'],
                                            hit.highlights('content')))

        return results
Fetch the ZooKeeper node at the given path.
dataset/ETHPy150Open mblayman/markwiki/markwiki/search/engine.py/SearchEngine.search--crossover with--dataset/ETHPy150Open AppScale/appscale/AppDB/zkappscale/zktransaction.py/ZKTransaction.get_node