Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add testcases contain growing segments #37262

Merged
merged 4 commits into from
Nov 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: update bm25 param key
Signed-off-by: zhuwenxing <[email protected]>
zhuwenxing committed Nov 11, 2024
commit e43ea82300cdc477eb4e85984b14e242143e7e1b
18 changes: 9 additions & 9 deletions tests/python_client/testcases/test_full_text_search.py
Original file line number Diff line number Diff line change
@@ -2523,7 +2523,7 @@ def test_full_text_search_for_growing_segment(
3. verify the result
expected: full text search successfully and result is correct
"""
tokenizer_params = {
analyzer_params = {
"tokenizer": tokenizer,
}
dim = 128
@@ -2533,31 +2533,31 @@ def test_full_text_search_for_growing_segment(
name="word",
dtype=DataType.VARCHAR,
max_length=65535,
enable_tokenizer=True,
tokenizer_params=tokenizer_params,
enable_analyzer=True,
analyzer_params=analyzer_params,
is_partition_key=enable_partition_key,
),
FieldSchema(
name="sentence",
dtype=DataType.VARCHAR,
max_length=65535,
enable_tokenizer=True,
tokenizer_params=tokenizer_params,
enable_analyzer=True,
analyzer_params=analyzer_params,
),
FieldSchema(
name="paragraph",
dtype=DataType.VARCHAR,
max_length=65535,
enable_tokenizer=True,
tokenizer_params=tokenizer_params,
enable_analyzer=True,
analyzer_params=analyzer_params,
),
FieldSchema(
name="text",
dtype=DataType.VARCHAR,
max_length=65535,
enable_tokenizer=True,
enable_analyzer=True,
enable_match=True,
tokenizer_params=tokenizer_params,
analyzer_params=analyzer_params,
),
FieldSchema(name="emb", dtype=DataType.FLOAT_VECTOR, dim=dim),
FieldSchema(name="text_sparse_emb", dtype=DataType.SPARSE_FLOAT_VECTOR),