Skip to content

Commit

Permalink
Revert "fix: is merge should be False by default (#1701)" (#1706)
Browse files Browse the repository at this point in the history
This reverts commit da2be57.
  • Loading branch information
hanxiao committed Jan 16, 2021
1 parent c56f348 commit 2fb2a5e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion jina/drivers/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class KVSearchDriver(BaseSearchDriver):
- K is the top-k
"""

def __init__(self, is_merge: bool = False, *args, **kwargs):
def __init__(self, is_merge: bool = True, *args, **kwargs):
"""
:param is_merge: when set to true the retrieved docs are merged into current message using :meth:`MergeFrom`,
Expand Down
1 change: 0 additions & 1 deletion tests/integration/level_depth/yaml/index-chunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ requests:
- !KVSearchDriver
with:
executor: chunkidx
is_merge: true
traversal_paths: ['m']
1 change: 0 additions & 1 deletion tests/integration/level_depth/yaml/index-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ requests:
- !KVSearchDriver
with:
executor: docIndexer
is_merge: true
traversal_paths: ['m']

0 comments on commit 2fb2a5e

Please sign in to comment.