We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee0926d commit 11ee8c9Copy full SHA for 11ee8c9
1 file changed
quickwit/quickwit-search/src/collector.rs
@@ -289,9 +289,12 @@ impl SortingFieldExtractorComponent {
289
let term_dict = str_column.dictionary();
290
let mut buffer = Vec::new();
291
term_dict.ord_to_term(val_as_u64, &mut buffer)?;
292
- SortValue::Str(
293
- String::from_utf8(buffer).expect("could not convert to String"),
294
- )
+ let string_value = String::from_utf8(buffer).map_err(|_| {
+ tantivy::TantivyError::InternalError(format!(
+ "term dictionary contains non-UTF-8 bytes"
295
+ ))
296
+ })?;
297
+ SortValue::Str(string_value)
298
}
299
300
0 commit comments