refactor Term (#2006)

* refactor Term

add ValueBytes for serialized term values
add missing debug for ip
skip unnecessary json path validation
remove code duplication
add DATE_TIME_PRECISION_INDEXED constant
add missing Term clarification
remove weird value_bytes_mut() API

* fix naming
This commit is contained in:
PSeitz
2023-04-20 21:31:43 +08:00
committed by GitHub
parent ff3d3313c4
commit 74f9eafefc
18 changed files with 394 additions and 273 deletions

View File

@@ -175,7 +175,7 @@ mod tests {
);
assert_eq!(
format!("{:?}", term_query),
r#"TermQuery(Term(type=Str, field=1, "hello"))"#
r#"TermQuery(Term(field=1, type=Str, "hello"))"#
);
}