-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Add a test for regex usage to runtime fields #63951
Conversation
Now that we've got regexes enabled by default (elastic#63029) this adds a test to runtime fields just to make sure that it works with regexes. It does, but this adds a test to make sure it continues to work.
Pinging @elastic/es-search (:Search/Search) |
Matcher m = /([^ ]+) .+/.matcher(doc["message"].value); | ||
if (m.matches()) { | ||
emit(m.group(1)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of curiosity, what happens when matches returns false for a doc? the runtime field wont have any value thats it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @nik9000
Yup. No value.
…On Tue, Oct 20, 2020, 14:46 Luca Cavanna ***@***.***> wrote:
***@***.**** approved this pull request.
thanks @nik9000 <https://github.com/nik9000>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#63951 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUXIRIZGMDTOEQXKRS2PTSLXLINANCNFSM4SYUG6GA>
.
|
Now that we've got regexes enabled by default (elastic#63029) this adds a test to runtime fields just to make sure that it works with regexes. It does, but this adds a test to make sure it continues to work.
Now that we've got regexes enabled by default (elastic#63029) this adds a test to runtime fields just to make sure that it works with regexes. It does, but this adds a test to make sure it continues to work.
Now that we've got regexes enabled by default (#63029) this adds a test
to runtime fields just to make sure that it works with regexes. It does,
but this adds a test to make sure it continues to work.