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>
This commit is contained in:
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

View File

@ -51,7 +51,11 @@ FieldMeta::enable_analyzer() const {
TokenizerParams TokenizerParams
FieldMeta::get_analyzer_params() const { 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; auto params = string_info_->params;
return ParseTokenizerParams(params); return ParseTokenizerParams(params);
} }