-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 regexp interval source #1917
Conversation
Can one of the admins verify this patch? |
✅ Gradle Check success 8142d8419d894f444ae68fa235e14b4934bad4ca |
A comment on #1916 regarding bwc makes me wonder if I need to handle it here. In this case, a regexp source is not even possible on old versions. Do I even need to worry about it? |
I think it won't be an issue, the |
@nknize can you please take a look at this when you have a chance? |
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.
I see a license block with Elasticsearch, which is probably a copy-paste from another file. Please remove it.
Please also confirm that this code is not copied from Elasticsearch.
server/src/test/java/org/opensearch/index/query/RegexpIntervalsSourceProviderTests.java
Outdated
Show resolved
Hide resolved
@dblock yes, just copy paste issue from WildcardIntervalsSourceProviderTests.java. There is no code copied from elasticsearch in this PR. I will get this updated. |
Add a regexp interval source provider so people can use regular expressions inside of intervals queries. Signed-off-by: Matt Weber <[email protected]>
de05cd3
to
e92ffb0
Compare
✅ Gradle Check success de05cd3568ee08f6b72a010d44017fa6fee0bf24 |
Unrelated failure, please rerun check. |
start gradle check |
server/src/main/java/org/opensearch/index/query/IntervalsSourceProvider.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/query/IntervalsSourceProvider.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/query/IntervalsSourceProvider.java
Outdated
Show resolved
Hide resolved
- register regexp interval in SearchModule - use fully-qualified name for lucene RegExp - get rid of unnecessary variable Signed-off-by: Matt Weber <[email protected]>
another unrelated failure, please run check again |
@andrross can you please take another look of this? |
For integ test failures that are intermittent, look for an existing issue on that, then if that doesn't exist, open one.
I opened #2064 |
start gradle check |
Make sure to open an issue to document this feature in https://github.com/opensearch-project/documentation-website when this is merged, please. |
Thanks @dblock, will do docs for this once everything is merged and hopefully backported. |
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.
Leaving for @andrross to take a final look.
Yes, let's see if automation does it (labeled backport 1.x). |
* Add regexp interval source Add a regexp interval source provider so people can use regular expressions inside of intervals queries. Signed-off-by: Matt Weber <[email protected]> * Fixes - register regexp interval in SearchModule - use fully-qualified name for lucene RegExp - get rid of unnecessary variable Signed-off-by: Matt Weber <[email protected]> (cherry picked from commit b9420d8)
@dblock will need to introduce some serialization version checks I believe |
* Add regexp interval source Add a regexp interval source provider so people can use regular expressions inside of intervals queries. Signed-off-by: Matt Weber <[email protected]> * Fixes - register regexp interval in SearchModule - use fully-qualified name for lucene RegExp - get rid of unnecessary variable Signed-off-by: Matt Weber <[email protected]> (cherry picked from commit b9420d8) Co-authored-by: Matt Weber <[email protected]>
Description
Add a regexp interval source provider so people can use regular
expressions inside of intervals queries.
Issues Resolved
#1858
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.