fix: use not retried err when get wrong parameter (#37707)

#37508

Signed-off-by: lixinguo <xinguo.li@zilliz.com>
Co-authored-by: lixinguo <xinguo.li@zilliz.com>
pull/37730/head
smellthemoon 2024-11-15 19:14:30 +08:00 committed by GitHub
parent e4b6773d0a
commit 7999367c0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -51,7 +51,11 @@ FieldMeta::enable_analyzer() const {
TokenizerParams
FieldMeta::get_analyzer_params() const {
Assert(enable_analyzer());
if (!enable_analyzer()) {
PanicInfo(
Unsupported,
fmt::format("unsupported text index when not enable analyzer"));
}
auto params = string_info_->params;
return ParseTokenizerParams(params);
}