mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2025-12-27 04:29:58 +00:00
make convert_to_fast_value_and_append_to_json_term pub
This commit is contained in:
@@ -253,10 +253,7 @@ fn index_json_value<'a, V: Value<'a>>(
|
|||||||
/// Tries to infer a JSON type from a string and append it to the term.
|
/// Tries to infer a JSON type from a string and append it to the term.
|
||||||
///
|
///
|
||||||
/// The term must be json + JSON path.
|
/// The term must be json + JSON path.
|
||||||
pub(crate) fn convert_to_fast_value_and_append_to_json_term(
|
pub fn convert_to_fast_value_and_append_to_json_term(mut term: Term, phrase: &str) -> Option<Term> {
|
||||||
mut term: Term,
|
|
||||||
phrase: &str,
|
|
||||||
) -> Option<Term> {
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
term.value()
|
term.value()
|
||||||
.as_json()
|
.as_json()
|
||||||
|
|||||||
Reference in New Issue
Block a user