Skip to content

Commit 2c01ebb

Browse files
committed
Expose facet_counts in riak http results
1 parent a190e87 commit 2c01ebb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

riak/codecs/http.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ def _normalize_json_search_response(self, json):
229229
if u'response' in json:
230230
result['num_found'] = json[u'response'][u'numFound']
231231
result['max_score'] = float(json[u'response'][u'maxScore'])
232+
if 'facet_counts' in json:
233+
result['facet_counts'] = json[u'facet_counts']
232234
docs = []
233235
for doc in json[u'response'][u'docs']:
234236
resdoc = {}

0 commit comments

Comments
 (0)