queryparser: add field respecification test (#2550)

This commit is contained in:
PSeitz
2024-12-02 14:17:12 +01:00
committed by GitHub
parent 4c52499622
commit 876a579e5d

View File

@@ -1497,6 +1497,11 @@ mod test {
test_is_parse_err(r#"field:(+a -"b c""#, r#"(+"field":a -"field":"b c")"#);
}
#[test]
fn field_re_specification() {
test_parse_query_to_ast_helper(r#"field:(abc AND b:cde)"#, r#"(+"field":abc +"b":cde)"#);
}
#[test]
fn test_parse_query_single_term() {
test_parse_query_to_ast_helper("abc", "abc");