Skip to content
Permalink
Browse files

refactor(proto): assign doc id in request generator

  • Loading branch information...
jemmyshin committed Aug 15, 2019
1 parent da3d3a8 commit 3a2b85b6b740e5e4f475937a7f570a8204feced7
Showing with 3 additions and 3 deletions.
  1. +3 −3 gnes/router/reduce/doc_sum.py
@@ -33,9 +33,9 @@ def apply(self, msg: 'gnes_pb2.Message', accum_msgs: List['gnes_pb2.Message'], *
doc_score_explained = defaultdict(str)

for d, s, ex in zip(all_docs, all_docs_socres, all_score_explained):
doc_id[d.meta_info] = d
doc_score[d.meta_info] += s
doc_score_explained[d.meta_info] += '%s\n' % ex
doc_id[d.doc_id] = d
doc_score[d.doc_id] += s
doc_score_explained[d.doc_id] += '%s\n' % ex

msg.response.search.ClearField('topk_results')

0 comments on commit 3a2b85b

Please sign in to comment.
You can’t perform that action at this time.