Merge pull request #3029 from quickwit-oss/trinity.pointard/get-ff-tokenizer-comeback

reintroduce get_fast_field_tokenizer_name
This commit is contained in:
trinity-1686a
2026-08-04 21:04:46 +02:00
committed by GitHub
2 changed files with 18 additions and 0 deletions
+9
View File
@@ -66,6 +66,15 @@ impl JsonObjectOptions {
self.fast.is_some()
}
/// Returns the tokenizer used for the fast field, if the json object
/// is a fast field and a tokenizer was configured for it.
#[inline]
pub fn get_fast_field_tokenizer_name(&self) -> Option<&str> {
self.fast
.as_ref()
.map(|fast_field_options| fast_field_options.tokenizer.as_str())
}
/// Returns `true` iff dots in json keys should be expanded.
///
/// When expand_dots is enabled, json object like
+9
View File
@@ -118,6 +118,15 @@ impl TextOptions {
self.fast.is_some()
}
/// Returns the tokenizer used for the fast field, if the text field
/// is a fast field and a tokenizer was configured for it.
#[inline]
pub fn get_fast_field_tokenizer_name(&self) -> Option<&str> {
self.fast
.as_ref()
.map(|fast_field_options| fast_field_options.tokenizer.as_str())
}
/// Returns true if values should be coerced to strings (numbers, null).
#[inline]
pub fn should_coerce(&self) -> bool {