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

Improve tooltip for Elasticsearch tag queries #1809

Merged
merged 4 commits into from
Sep 27, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,17 @@ export class SearchFormImpl extends React.PureComponent {
<li>
Values containing whitespace or equal-sign &apos=&apos should be enclosed in quotes
</li>
<li>
Elasticsearch/OpenSearch storage requires escaping{' '}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to belong in the tool tip. The only escaping needed in the ui input is so that the ui parser can pick apart the right strings. If those strings still need additional escaping for storage, it should be handled by the storage implementation, transparently to the user.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ES storage uses on purpose regex terms (it regex support was added to ES storage some time ago).

The goal here is to document this to let people know that escaping is needed for exact match queries.

<a
href="https://lucene.apache.org/core/9_0_0/core/org/apache/lucene/util/automaton/RegExp.html"
rel="noopener noreferrer"
target="_blank"
>
reserved characters
</a>{' '}
for exact match queries.
</li>
</ul>,
]}
content={
Expand Down