Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(indexer): fix weight in indexer call
Browse files Browse the repository at this point in the history
  • Loading branch information
Larryjianfeng committed Jul 24, 2019
1 parent fe7dd55 commit 2c69648
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gnes/proto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def index(data: List[bytes], batch_size: int = 0, *args, **kwargs):
for raw_bytes in pi:
d = req.index.docs.add()
d.raw_bytes = raw_bytes
d.weight = 1.0
yield req

@staticmethod
Expand Down

0 comments on commit 2c69648

Please sign in to comment.