-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Search Pipelines] Add default_search_pipeline index setting #7470
[Search Pipelines] Add default_search_pipeline index setting #7470
Conversation
b2adb8b
to
60f3718
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
60f3718
to
7d1d96f
Compare
7d1d96f
to
9a98732
Compare
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #7470 +/- ##
============================================
- Coverage 70.54% 70.45% -0.10%
+ Complexity 59713 59677 -36
============================================
Files 4896 4896
Lines 286798 286815 +17
Branches 41331 41335 +4
============================================
- Hits 202334 202063 -271
- Misses 67761 68071 +310
+ Partials 16703 16681 -22
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
@msfroh could you please rebase? |
Seeing a bunch of
Ref: https://build.ci.opensearch.org/job/gradle-check/15296/consoleFull Can it be because of the version mismatch between 2.x and main since #7253 was merged and this isn't? |
1170cb5
to
d70a6fe
Compare
@reta Done |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Once users have defined and tested a search pipeline, they may want to apply it by default to all queries hitting a given index. Users should be able to bypass the default pipeline for the index by explicitly specifying `search_pipeline=_none` in the URL parameter of their search request. Signed-off-by: Michael Froh <[email protected]>
Also change version check for ad hoc pipeline to 2.8 Signed-off-by: Michael Froh <[email protected]>
Signed-off-by: Michael Froh <[email protected]>
42a4f8a
to
9dc30b4
Compare
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Michael Froh <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Merge conflicts have been fixed. Rebased onto main recently. Any remaining blockers to merging? @kotwanikunal @andrross @reta Thanks! |
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-7470-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 59847356b1c82562498f38896adef66ea1702cd6
# Push it to GitHub
git push --set-upstream origin backport/backport-7470-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
@msfroh Can you pick up the backport since the automated cherry-pick failed? |
…rch-project#7470) * [Search Pipelines] Add default_search_pipeline index setting Once users have defined and tested a search pipeline, they may want to apply it by default to all queries hitting a given index. Users should be able to bypass the default pipeline for the index by explicitly specifying `search_pipeline=_none` in the URL parameter of their search request. Signed-off-by: Michael Froh <[email protected]> * Rename default search pipeline setting and add getter/setter Also change version check for ad hoc pipeline to 2.8 Signed-off-by: Michael Froh <[email protected]> * Add tests for new IndexSettings methods Signed-off-by: Michael Froh <[email protected]> * Update test to reflect change to FeatureFlagSetter Signed-off-by: Michael Froh <[email protected]> --------- Signed-off-by: Michael Froh <[email protected]> (cherry picked from commit 5984735)
Backport PR: #7589 |
…tting (#7470) (#7589) * [Search Pipelines] Add default_search_pipeline index setting (#7470) * [Search Pipelines] Add default_search_pipeline index setting Once users have defined and tested a search pipeline, they may want to apply it by default to all queries hitting a given index. Users should be able to bypass the default pipeline for the index by explicitly specifying `search_pipeline=_none` in the URL parameter of their search request. Signed-off-by: Michael Froh <[email protected]> * Rename default search pipeline setting and add getter/setter Also change version check for ad hoc pipeline to 2.8 Signed-off-by: Michael Froh <[email protected]> * Add tests for new IndexSettings methods Signed-off-by: Michael Froh <[email protected]> * Update test to reflect change to FeatureFlagSetter Signed-off-by: Michael Froh <[email protected]> --------- Signed-off-by: Michael Froh <[email protected]> (cherry picked from commit 5984735) * Only enable search pipelines for BWC tests after 2.7.0 Signed-off-by: Michael Froh <[email protected]> * Fix version check for search pipelines REST test I previously misunderstood the syntax for skipping tests by version. Thanks @reta for catching this! Signed-off-by: Michael Froh <[email protected]> --------- Signed-off-by: Michael Froh <[email protected]>
…rch-project#7470) * [Search Pipelines] Add default_search_pipeline index setting Once users have defined and tested a search pipeline, they may want to apply it by default to all queries hitting a given index. Users should be able to bypass the default pipeline for the index by explicitly specifying `search_pipeline=_none` in the URL parameter of their search request. Signed-off-by: Michael Froh <[email protected]> * Rename default search pipeline setting and add getter/setter Also change version check for ad hoc pipeline to 2.8 Signed-off-by: Michael Froh <[email protected]> * Add tests for new IndexSettings methods Signed-off-by: Michael Froh <[email protected]> * Update test to reflect change to FeatureFlagSetter Signed-off-by: Michael Froh <[email protected]> --------- Signed-off-by: Michael Froh <[email protected]>
…rch-project#7470) * [Search Pipelines] Add default_search_pipeline index setting Once users have defined and tested a search pipeline, they may want to apply it by default to all queries hitting a given index. Users should be able to bypass the default pipeline for the index by explicitly specifying `search_pipeline=_none` in the URL parameter of their search request. Signed-off-by: Michael Froh <[email protected]> * Rename default search pipeline setting and add getter/setter Also change version check for ad hoc pipeline to 2.8 Signed-off-by: Michael Froh <[email protected]> * Add tests for new IndexSettings methods Signed-off-by: Michael Froh <[email protected]> * Update test to reflect change to FeatureFlagSetter Signed-off-by: Michael Froh <[email protected]> --------- Signed-off-by: Michael Froh <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
Once users have defined and tested a search pipeline, they may want to apply it by default to all queries hitting a given index.
Users should be able to bypass the default pipeline for the index by explicitly specifying
search_pipeline=_none
in the URL parameter of their search request.Related Issues
Resolves #6719
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.