Skip to content

Commit

Permalink
fix: is merge should be False by default
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianmtr committed Jan 15, 2021
1 parent 321a890 commit c4fee6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
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 = True, *args, **kwargs):
def __init__(self, is_merge: bool = False, *args, **kwargs):
"""
:param is_merge: when set to true the retrieved docs are merged into current message using :meth:`MergeFrom`,
Expand Down
1 change: 1 addition & 0 deletions tests/integration/level_depth/yaml/index-chunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ requests:
- !KVSearchDriver
with:
executor: chunkidx
is_merge: true
traversal_paths: ['m']
1 change: 1 addition & 0 deletions tests/integration/level_depth/yaml/index-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ requests:
- !KVSearchDriver
with:
executor: docIndexer
is_merge: true
traversal_paths: ['m']

0 comments on commit c4fee6e

Please sign in to comment.