[Search Pipelines] Support ad hoc pipelines#7253
Merged
andrross merged 5 commits intoopensearch-project:mainfrom May 6, 2023
Merged
[Search Pipelines] Support ad hoc pipelines#7253andrross merged 5 commits intoopensearch-project:mainfrom
andrross merged 5 commits intoopensearch-project:mainfrom
Conversation
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
bbd7c90 to
9469e77
Compare
Contributor
Gradle Check (Jenkins) Run Completed with:
|
6 tasks
Contributor
Author
reta
reviewed
May 3, 2023
server/src/main/java/org/opensearch/action/search/TransportSearchAction.java
Outdated
Show resolved
Hide resolved
This change allows a search pipeline to be defined within a search request body. This will take precedence over any other search pipeline, and allows ad hoc testing of pipeline configurations before persisting the pipeline definition in cluster state. Signed-off-by: Michael Froh <froh@amazon.com>
9469e77 to
c0bdd3d
Compare
msfroh
commented
May 4, 2023
server/src/main/java/org/opensearch/search/pipeline/SearchPipelineService.java
Outdated
Show resolved
Hide resolved
reta
reviewed
May 4, 2023
reta
reviewed
May 4, 2023
server/src/main/java/org/opensearch/search/pipeline/Pipeline.java
Outdated
Show resolved
Hide resolved
reta
reviewed
May 4, 2023
server/src/main/java/org/opensearch/search/pipeline/Pipeline.java
Outdated
Show resolved
Hide resolved
Contributor
Gradle Check (Jenkins) Run Completed with:
|
reta
reviewed
May 4, 2023
server/src/main/java/org/opensearch/search/pipeline/Pipeline.java
Outdated
Show resolved
Hide resolved
reta
reviewed
May 4, 2023
server/src/main/java/org/opensearch/search/pipeline/Pipeline.java
Outdated
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #7253 +/- ##
============================================
- Coverage 70.60% 70.58% -0.03%
+ Complexity 59582 59564 -18
============================================
Files 4877 4878 +1
Lines 285806 285844 +38
Branches 41165 41175 +10
============================================
- Hits 201787 201756 -31
- Misses 67446 67516 +70
+ Partials 16573 16572 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1. Create all streams in try-with-resources. 2. Keep methods in Pipeline package-private. 3. Remove spurious character in CHANGELOG. Also, I remembered that in a future change, I'm going to call the no-op pipeline "_none" (like when bypassing an ingest pipeline) so I should name it "_none" from the start. Signed-off-by: Michael Froh <froh@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
reta
approved these changes
May 5, 2023
Contributor
|
@andrross mind to take a look? thank you! ;-) |
andrross
reviewed
May 5, 2023
...ine-common/src/yamlRestTest/resources/rest-api-spec/test/search_pipeline/30_filter_query.yml
Show resolved
Hide resolved
server/src/main/java/org/opensearch/search/pipeline/PipelinedRequest.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/search/pipeline/PipelinedRequest.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/search/pipeline/PipelinedRequest.java
Outdated
Show resolved
Hide resolved
andrross
reviewed
May 6, 2023
- Added opensearch.internal annotation to PipelinedRequest. - Made PipelinedRequest final. - Removed TODO from PipelinedRequest. - Moved changelog entry to 2.x. Signed-off-by: Michael Froh <froh@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
andrross
approved these changes
May 6, 2023
Contributor
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-7253-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 c43d7138636023315605f8a4caf91cf407c8753a
# Push it to GitHub
git push --set-upstream origin backport/backport-7253-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.xThen, create a pull request where the |
msfroh
added a commit
to msfroh/OpenSearch
that referenced
this pull request
May 9, 2023
* [Search Pipelines] Support ad hoc pipelines This change allows a search pipeline to be defined within a search request body. This will take precedence over any other search pipeline, and allows ad hoc testing of pipeline configurations before persisting the pipeline definition in cluster state. Signed-off-by: Michael Froh <froh@amazon.com> * Added changelog entry Signed-off-by: Michael Froh <froh@amazon.com> * Incorporate feedback from @reta Resolve + transform request into PipelinedRequest, then use that to transform the search response. Signed-off-by: Michael Froh <froh@amazon.com> * Incorporate more feedback from @reta 1. Create all streams in try-with-resources. 2. Keep methods in Pipeline package-private. 3. Remove spurious character in CHANGELOG. Also, I remembered that in a future change, I'm going to call the no-op pipeline "_none" (like when bypassing an ingest pipeline) so I should name it "_none" from the start. Signed-off-by: Michael Froh <froh@amazon.com> * Incorporate feedback from @andrross - Added opensearch.internal annotation to PipelinedRequest. - Made PipelinedRequest final. - Removed TODO from PipelinedRequest. - Moved changelog entry to 2.x. Signed-off-by: Michael Froh <froh@amazon.com> --------- Signed-off-by: Michael Froh <froh@amazon.com> (cherry picked from commit c43d713)
msfroh
added a commit
to msfroh/OpenSearch
that referenced
this pull request
May 9, 2023
* [Search Pipelines] Support ad hoc pipelines This change allows a search pipeline to be defined within a search request body. This will take precedence over any other search pipeline, and allows ad hoc testing of pipeline configurations before persisting the pipeline definition in cluster state. Signed-off-by: Michael Froh <froh@amazon.com> * Added changelog entry Signed-off-by: Michael Froh <froh@amazon.com> * Incorporate feedback from @reta Resolve + transform request into PipelinedRequest, then use that to transform the search response. Signed-off-by: Michael Froh <froh@amazon.com> * Incorporate more feedback from @reta 1. Create all streams in try-with-resources. 2. Keep methods in Pipeline package-private. 3. Remove spurious character in CHANGELOG. Also, I remembered that in a future change, I'm going to call the no-op pipeline "_none" (like when bypassing an ingest pipeline) so I should name it "_none" from the start. Signed-off-by: Michael Froh <froh@amazon.com> * Incorporate feedback from @andrross - Added opensearch.internal annotation to PipelinedRequest. - Made PipelinedRequest final. - Removed TODO from PipelinedRequest. - Moved changelog entry to 2.x. Signed-off-by: Michael Froh <froh@amazon.com> --------- Signed-off-by: Michael Froh <froh@amazon.com> (cherry picked from commit c43d713)
kotwanikunal
pushed a commit
that referenced
this pull request
May 11, 2023
* [Search Pipelines] Support ad hoc pipelines (#7253) * [Search Pipelines] Support ad hoc pipelines This change allows a search pipeline to be defined within a search request body. This will take precedence over any other search pipeline, and allows ad hoc testing of pipeline configurations before persisting the pipeline definition in cluster state. Signed-off-by: Michael Froh <froh@amazon.com> * Added changelog entry Signed-off-by: Michael Froh <froh@amazon.com> * Incorporate feedback from @reta Resolve + transform request into PipelinedRequest, then use that to transform the search response. Signed-off-by: Michael Froh <froh@amazon.com> * Incorporate more feedback from @reta 1. Create all streams in try-with-resources. 2. Keep methods in Pipeline package-private. 3. Remove spurious character in CHANGELOG. Also, I remembered that in a future change, I'm going to call the no-op pipeline "_none" (like when bypassing an ingest pipeline) so I should name it "_none" from the start. Signed-off-by: Michael Froh <froh@amazon.com> * Incorporate feedback from @andrross - Added opensearch.internal annotation to PipelinedRequest. - Made PipelinedRequest final. - Removed TODO from PipelinedRequest. - Moved changelog entry to 2.x. Signed-off-by: Michael Froh <froh@amazon.com> --------- Signed-off-by: Michael Froh <froh@amazon.com> (cherry picked from commit c43d713) * Lower back-compatibility check to 2.8.0 Signed-off-by: Michael Froh <froh@amazon.com> --------- Signed-off-by: Michael Froh <froh@amazon.com>
6 tasks
This was referenced Jul 8, 2023
shiv0408
pushed a commit
to Gaurav614/OpenSearch
that referenced
this pull request
Apr 25, 2024
* [Search Pipelines] Support ad hoc pipelines This change allows a search pipeline to be defined within a search request body. This will take precedence over any other search pipeline, and allows ad hoc testing of pipeline configurations before persisting the pipeline definition in cluster state. Signed-off-by: Michael Froh <froh@amazon.com> * Added changelog entry Signed-off-by: Michael Froh <froh@amazon.com> * Incorporate feedback from @reta Resolve + transform request into PipelinedRequest, then use that to transform the search response. Signed-off-by: Michael Froh <froh@amazon.com> * Incorporate more feedback from @reta 1. Create all streams in try-with-resources. 2. Keep methods in Pipeline package-private. 3. Remove spurious character in CHANGELOG. Also, I remembered that in a future change, I'm going to call the no-op pipeline "_none" (like when bypassing an ingest pipeline) so I should name it "_none" from the start. Signed-off-by: Michael Froh <froh@amazon.com> * Incorporate feedback from @andrross - Added opensearch.internal annotation to PipelinedRequest. - Made PipelinedRequest final. - Removed TODO from PipelinedRequest. - Moved changelog entry to 2.x. Signed-off-by: Michael Froh <froh@amazon.com> --------- Signed-off-by: Michael Froh <froh@amazon.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
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
This change allows a search pipeline to be defined within a search request body. This will take precedence over any other search pipeline, and allows ad hoc testing of pipeline configurations before persisting the pipeline definition in cluster state.
The new search source field is gated behind the search pipelines feature flag. Also, serialization of the field is gated behind a 3.0 version check. I don't think we should backport to the 2.x branch before we release 2.7. I think we'll want to update that version check to 2.8.
Issues Resolved
#6717
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.