Adding WithFieldName interface for QueryBuilders with fieldName#15705
Merged
jainankitk merged 3 commits intoopensearch-project:mainfrom Sep 5, 2024
Merged
Adding WithFieldName interface for QueryBuilders with fieldName#15705jainankitk merged 3 commits intoopensearch-project:mainfrom
jainankitk merged 3 commits intoopensearch-project:mainfrom
Conversation
jainankitk
reviewed
Sep 4, 2024
...rc/main/java/org/opensearch/plugin/correlation/core/index/query/CorrelationQueryBuilder.java
Outdated
Show resolved
Hide resolved
Contributor
|
❌ Gradle check result for 089eede: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
71d1cb1 to
9b6f465
Compare
jainankitk
approved these changes
Sep 4, 2024
Contributor
jainankitk
left a comment
There was a problem hiding this comment.
@msfroh - Can you also provide your feedback on this PR?
server/src/main/java/org/opensearch/index/query/MultiTermQueryBuilder.java
Show resolved
Hide resolved
Contributor
|
@dzane17 - Can you add CHANGELOG.md for this change? |
dzane17
added a commit
to dzane17/OpenSearch
that referenced
this pull request
Sep 5, 2024
…search-project#15705) Signed-off-by: David Zane <davizane@amazon.com> Signed-off-by: Ankit Jain <akjain@amazon.com> Co-authored-by: Ankit Jain <akjain@amazon.com> (cherry picked from commit f5c897c)
dzane17
added a commit
to dzane17/OpenSearch
that referenced
this pull request
Sep 5, 2024
…search-project#15705) Signed-off-by: David Zane <davizane@amazon.com> Signed-off-by: Ankit Jain <akjain@amazon.com> Co-authored-by: Ankit Jain <akjain@amazon.com> (cherry picked from commit f5c897c)
dzane17
added a commit
to dzane17/OpenSearch
that referenced
this pull request
Sep 5, 2024
…search-project#15705) Signed-off-by: David Zane <davizane@amazon.com> Signed-off-by: Ankit Jain <akjain@amazon.com> Co-authored-by: Ankit Jain <akjain@amazon.com> (cherry picked from commit f5c897c)
3 tasks
dzane17
added a commit
to dzane17/OpenSearch
that referenced
this pull request
Sep 5, 2024
…search-project#15705) Signed-off-by: David Zane <davizane@amazon.com> Signed-off-by: Ankit Jain <akjain@amazon.com> Co-authored-by: Ankit Jain <akjain@amazon.com> (cherry picked from commit f5c897c)
3 tasks
jainankitk
added a commit
that referenced
this pull request
Sep 5, 2024
… fieldName (#15765) * Adding WithFieldName interface for QueryBuilders with fieldName (#15705) Signed-off-by: David Zane <davizane@amazon.com> Signed-off-by: Ankit Jain <akjain@amazon.com> Co-authored-by: Ankit Jain <akjain@amazon.com> (cherry picked from commit f5c897c) * Update CHANGELOG.md Signed-off-by: Ankit Jain <akjain@amazon.com> --------- Signed-off-by: Ankit Jain <akjain@amazon.com> Co-authored-by: Ankit Jain <akjain@amazon.com>
dzane17
added a commit
to dzane17/OpenSearch
that referenced
this pull request
Sep 5, 2024
…search-project#15705) Signed-off-by: David Zane <davizane@amazon.com> Signed-off-by: Ankit Jain <akjain@amazon.com> Co-authored-by: Ankit Jain <akjain@amazon.com> (cherry picked from commit f5c897c)
dzane17
added a commit
to dzane17/OpenSearch
that referenced
this pull request
Sep 6, 2024
…search-project#15705) Signed-off-by: David Zane <davizane@amazon.com> Signed-off-by: Ankit Jain <akjain@amazon.com> Co-authored-by: Ankit Jain <akjain@amazon.com> (cherry picked from commit f5c897c)
This was referenced Sep 6, 2024
dzane17
added a commit
to dzane17/OpenSearch
that referenced
this pull request
Sep 9, 2024
…search-project#15705) Signed-off-by: David Zane <davizane@amazon.com> Signed-off-by: Ankit Jain <akjain@amazon.com> Co-authored-by: Ankit Jain <akjain@amazon.com> (cherry picked from commit f5c897c)
dzane17
added a commit
to dzane17/OpenSearch
that referenced
this pull request
Sep 9, 2024
…search-project#15705) Signed-off-by: David Zane <davizane@amazon.com> Signed-off-by: Ankit Jain <akjain@amazon.com> Co-authored-by: Ankit Jain <akjain@amazon.com> (cherry picked from commit f5c897c)
jainankitk
added a commit
that referenced
this pull request
Sep 9, 2024
akolarkunnu
pushed a commit
to akolarkunnu/OpenSearch
that referenced
this pull request
Sep 10, 2024
…search-project#15705) Signed-off-by: David Zane <davizane@amazon.com> Signed-off-by: Ankit Jain <akjain@amazon.com> Co-authored-by: Ankit Jain <akjain@amazon.com>
Merged
3 tasks
dk2k
pushed a commit
to dk2k/OpenSearch
that referenced
this pull request
Oct 16, 2024
…search-project#15705) Signed-off-by: David Zane <davizane@amazon.com> Signed-off-by: Ankit Jain <akjain@amazon.com> Co-authored-by: Ankit Jain <akjain@amazon.com>
dk2k
pushed a commit
to dk2k/OpenSearch
that referenced
this pull request
Oct 17, 2024
…search-project#15705) Signed-off-by: David Zane <davizane@amazon.com> Signed-off-by: Ankit Jain <akjain@amazon.com> Co-authored-by: Ankit Jain <akjain@amazon.com>
dk2k
pushed a commit
to dk2k/OpenSearch
that referenced
this pull request
Oct 21, 2024
…search-project#15705) Signed-off-by: David Zane <davizane@amazon.com> Signed-off-by: Ankit Jain <akjain@amazon.com> Co-authored-by: Ankit Jain <akjain@amazon.com>
3 tasks
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adding
WithFieldNameinterface and update QueryBuilder classes that conform - have afieldName()implementation.In the Query-Insights plugin, we would like to append
fieldNameandfieldTypedata during query shape construction. Some*QueryBuilderclasses already provide afieldName()method, but not all query types necessarily operate on a single field. Adding theWithFieldNameinterface provides a uniform way to type-check any*QueryBuilderinstance and get a singularfieldNamewhen possible. Also oncefieldNameis known, we can lookupfieldTypevia index mappings.Related Issues
Related RFC opensearch-project/query-insights#69
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.