diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-02-03 20:43:02 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-02-03 20:43:02 +0100 |
commit | 29f560c9851b7eeef031dd2ae785e7b53bf394da (patch) | |
tree | 301c62f374e064d0641a473303604d6345eee056 | |
parent | first results. (diff) | |
download | newspipe-29f560c9851b7eeef031dd2ae785e7b53bf394da.tar.gz newspipe-29f560c9851b7eeef031dd2ae785e7b53bf394da.tar.bz2 newspipe-29f560c9851b7eeef031dd2ae785e7b53bf394da.zip |
Updated benchmark.
-rw-r--r-- | benchmark/testelasticsearch.py | 5 |
1 files changed, 2 insertions, 3 deletions
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 |