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
I came across some weird behavior of the lucene regex matching.
My os database contains entries with the following values: abc, abc\, abc), abc&
In lucene regex have implicit anchors in the beginning and the and.
Regex
Result
Expected
ab
does not match abc
Expected
abc
matches abc, abc\, abc), abc&
Unexpected
So for abc is the anchor ignored for some characters?
Now let's say I want a query that only matches abc&:
Regex
Result
Expected
abc&
Invalid query
Expected since & is calculating a intersection
abc&&
Nothing is matched
?
abc\&
Nothing is matched
Unexpected
I did not found a way to match explicitly abc&.
Note that this behavior exists with and without the optional parameter being enabled.
Related component
Other
To Reproduce
Add entries with abc, abc\, abc) and abc& to the dataset.
Describe the bug
I came across some weird behavior of the lucene regex matching.
My os database contains entries with the following values:
abc
,abc\
,abc)
,abc&
In lucene regex have implicit anchors in the beginning and the and.
ab
abc
abc
abc
,abc\
,abc)
,abc&
So for abc is the anchor ignored for some characters?
Now let's say I want a query that only matches
abc&
:abc&
abc&&
abc\&
I did not found a way to match explicitly abc&.
Note that this behavior exists with and without the optional parameter being enabled.
Related component
Other
To Reproduce
abc
,abc\
,abc)
andabc&
to the dataset.Expected behavior
abc
should only matchabc
and notabc\
,abc)
,abc&
abc\&
should matchabc&
Additional Details
Version retrieved from
curl -X GET "http://localhost:9200"
The text was updated successfully, but these errors were encountered: