Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clp-s: Incorrect search results with a "?" at the end of a query #404

Open
wraymo opened this issue May 14, 2024 · 0 comments
Open

clp-s: Incorrect search results with a "?" at the end of a query #404

wraymo opened this issue May 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wraymo
Copy link
Contributor

wraymo commented May 14, 2024

Bug

For wildcard queries using clp-s, if the ? wildcard is positioned in the middle, it triggers bug #403. However, when it appears at the end of the query, it may return unmatched results. This is because we replace ? with *, leading to find unmatched log-type entries, and fail to perform a wildcard match with the original query (including ?) after decompressing a message.

CLP version

3e95aaf

Environment

MacOS 13.2.1

Reproduction steps

Compress the log below and run the query a: *Hello?. Because the query contains a *, it won't automatically add * to the beginning and the end of the query. However, instead of returning empty results, it returns both log messages.

{"a": "Hello world?", "b": 1, "c":"*"}
{"a": "Hello *", "b": "?world"}
@wraymo wraymo added the bug Something isn't working label May 14, 2024
@wraymo wraymo changed the title clp-s: Incorrect search results with a "?" wildcard at the end of a query clp-s: Incorrect search results with a "?" at the end of a query May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant