From 2c6964837c4bc7387b0585d26b4f8ab5f80d3909 Mon Sep 17 00:00:00 2001 From: Larry Yan Date: Wed, 24 Jul 2019 13:07:06 +0800 Subject: [PATCH] fix(indexer): fix weight in indexer call --- gnes/proto/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gnes/proto/__init__.py b/gnes/proto/__init__.py index 7d4e0b9d..058768fd 100644 --- a/gnes/proto/__init__.py +++ b/gnes/proto/__init__.py @@ -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