You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the query (A OR B) NOT (C OR D), I can produce a syntax error, where I believe should be none. These two variations work fine:
let query = query_parser.parse_query("(A OR B) NOT (C OR D)");let query = query_parser.parse_query("((A OR B) NOT (C OR D))");
Let's say, I search in the field title then these two variations raise syntax errors:
let query = query_parser.parse_query("title:(A OR B) NOT (C OR D)");// also wrapping the query in additional parentheses doesn't helplet query = query_parser.parse_query("title:((A OR B) NOT (C OR D))");
I would expect that the query parses just fine since this works:
let query = query_parser.parse_query("title:A OR B NOT (C OR D)");
Which version of tantivy are you using?
Version 0.22.0 (via cargo)
EDIT:
I've also ran into issues with a query like this one
let query = query_parser.parse_query(r#" "a b" OR "a c"~3 NOT (d AND (e OR f)) "#);
I would propose to add unit tests to the query-grammar
Describe the bug
Given the query
(A OR B) NOT (C OR D)
, I can produce a syntax error, where I believe should be none. These two variations work fine:Let's say, I search in the field
title
then these two variations raise syntax errors:I would expect that the query parses just fine since this works:
Which version of tantivy are you using?
Version 0.22.0 (via cargo)
EDIT:
I've also ran into issues with a query like this one
I would propose to add unit tests to the query-grammar
I think my issue is related to this one: #1980
The text was updated successfully, but these errors were encountered: