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/02/10 14:58:36 UTC

svn commit: r1729601 - /steve/trunk/pysteve/lib/backends/es.py

Author: humbedooh
Date: Wed Feb 10 13:58:36 2016
New Revision: 1729601

URL: http://svn.apache.org/viewvc?rev=1729601&view=rev
Log:
we only need 'id' here, so don't bother fetching the rest

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=1729601&r1=1729600&r2=1729601&view=diff
==============================================================================
--- steve/trunk/pysteve/lib/backends/es.py (original)
+++ steve/trunk/pysteve/lib/backends/es.py Wed Feb 10 13:58:36 2016
@@ -144,7 +144,7 @@ class ElasticSearchBackend:
         "List all issues in an election"
         issues = []
         try:
-            res = self.es.search(index="steve", doc_type="issues", sort = "id", q = "election:%s" % election, size = 999)
+            res = self.es.search(index="steve", doc_type="issues", sort = "id", q = "election:%s" % election, size = 999, _source_include = 'id')
             results = len(res['hits']['hits'])
             if results > 0:
                 for entry in res['hits']['hits']: