Beispiel #1
0
 def execute(self):
     try:
         result = es.search(index=es.index_name,
                            doc_type=self.adapter.doc_type(),
                            body=self.get_body())
     except:
         log.exception('Unable to execute search query')
         result = {}
     return SearchResult(self, result)
Beispiel #2
0
 def execute(self):
     try:
         result = es.search(index=es.index_name,
                            doc_type=self.adapter.doc_type(),
                            body=self.get_body())
     except:
         log.exception('Unable to execute search query')
         result = {}
     return SearchResult(self, result)
Beispiel #3
0
 def execute(self):
     try:
         result = es.search(index=es.index_name, doc_type=self.adapter.doc_type(), body=self.get_body())
     except:
         result = {}
     return SearchResult(self, result)