From 29f560c9851b7eeef031dd2ae785e7b53bf394da Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 3 Feb 2014 20:43:02 +0100 Subject: Updated benchmark. --- benchmark/testelasticsearch.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'benchmark') diff --git a/benchmark/testelasticsearch.py b/benchmark/testelasticsearch.py index 7a5d1d5b..accb8792 100644 --- a/benchmark/testelasticsearch.py +++ b/benchmark/testelasticsearch.py @@ -41,7 +41,7 @@ def search(term): Search a term. """ try: - return es.search(index="pyaggr3g470r", body= + es.search(index="pyaggr3g470r", body= {"query" : { "filtered" : { "query" : { @@ -54,5 +54,4 @@ def search(term): } }, size=5000) except elasticsearch.exceptions.NotFoundError as e: - logger.warning(str(e)) - return None \ No newline at end of file + pass \ No newline at end of file -- cgit