You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2016/03/27 19:17:35 UTC
svn commit: r1736785 - /steve/trunk/pysteve/lib/backends/es.py
Author: humbedooh
Date: Sun Mar 27 17:17:34 2016
New Revision: 1736785
URL: http://svn.apache.org/viewvc?rev=1736785&view=rev
Log:
this needs to be inside 'query', apparently.
Modified:
steve/trunk/pysteve/lib/backends/es.py
Modified: steve/trunk/pysteve/lib/backends/es.py
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/lib/backends/es.py?rev=1736785&r1=1736784&r2=1736785&view=diff
==============================================================================
--- steve/trunk/pysteve/lib/backends/es.py (original)
+++ steve/trunk/pysteve/lib/backends/es.py Sun Mar 27 17:17:34 2016
@@ -262,8 +262,10 @@ class ElasticSearchBackend:
# Then, get all ballots and note whether they still apply or not
ballots = {}
res = self.es.search(index="steve", doc_type="voters", body = {
- "match": {
- "uid": UID
+ "query": {
+ "match": {
+ "uid": UID
+ }
}
}, size = 999)
results = len(res['hits']['hits'])