aboutsummaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-02-03 20:43:02 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-02-03 20:43:02 +0100
commit29f560c9851b7eeef031dd2ae785e7b53bf394da (patch)
tree301c62f374e064d0641a473303604d6345eee056 /benchmark
parentfirst results. (diff)
downloadnewspipe-29f560c9851b7eeef031dd2ae785e7b53bf394da.tar.gz
newspipe-29f560c9851b7eeef031dd2ae785e7b53bf394da.tar.bz2
newspipe-29f560c9851b7eeef031dd2ae785e7b53bf394da.zip
Updated benchmark.
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/testelasticsearch.py5
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
bgstack15