You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Search pipelines] Add Global Ignore_failure options for Processors (#8373)
* Add Global Ingore_failure options for Processors
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
* add changelog
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
* Add ignore_failure to 40_rename_response
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
* Change Boolean to boolean and refactor AbstractProcessor
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
* rename to isIgnoreFailure and add tests
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
* rename to isIgnoreFailure and add tests
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
* add ignoreFailure to runSearchPhaseResultsTransformer
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
* fix filter query and change log warn message
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
* Add test on matching each processor stat
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
* Add test on matching each processor stat
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
* remove extra spaces and words
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
* use IGNORE_FAILURE_KEY
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
---------
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
Copy file name to clipboardexpand all lines: modules/search-pipeline-common/src/main/java/org/opensearch/search/pipeline/common/FilterQueryRequestProcessor.java
Copy file name to clipboardexpand all lines: modules/search-pipeline-common/src/main/java/org/opensearch/search/pipeline/common/RenameFieldResponseProcessor.java
Copy file name to clipboardexpand all lines: modules/search-pipeline-common/src/main/java/org/opensearch/search/pipeline/common/ScriptRequestProcessor.java
Copy file name to clipboardexpand all lines: modules/search-pipeline-common/src/test/java/org/opensearch/search/pipeline/common/FilterQueryRequestProcessorTests.java
+3-3
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ public class FilterQueryRequestProcessorTests extends AbstractBuilderTestCase {
Copy file name to clipboardexpand all lines: modules/search-pipeline-common/src/test/java/org/opensearch/search/pipeline/common/RenameFieldResponseProcessorTests.java
+5-2
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ public void testRenameResponse() throws Exception {
Copy file name to clipboardexpand all lines: modules/search-pipeline-common/src/test/java/org/opensearch/search/pipeline/common/ScriptRequestProcessorTests.java
Copy file name to clipboardexpand all lines: modules/search-pipeline-common/src/yamlRestTest/resources/rest-api-spec/test/search_pipeline/40_rename_response.yml
+31-2
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,26 @@ teardown:
63
63
}
64
64
- match: { acknowledged: true }
65
65
66
+
- do:
67
+
search_pipeline.put:
68
+
id: "my_pipeline_4"
69
+
body: >
70
+
{
71
+
"description": "test pipeline with ignore missing false and ignore failure true",
72
+
"response_processors": [
73
+
{
74
+
"rename_field":
75
+
{
76
+
"field": "aa",
77
+
"target_field": "b",
78
+
"ignore_missing": false,
79
+
"ignore_failure": true
80
+
}
81
+
}
82
+
]
83
+
}
84
+
- match: { acknowledged: true }
85
+
66
86
- do:
67
87
indices.create:
68
88
index: test
@@ -119,15 +139,24 @@ teardown:
119
139
- match: { hits.total.value: 1 }
120
140
- match: {hits.hits.0._source: { "a": "foo" } }
121
141
122
-
# Pipeline with ignore_missing set to true
123
-
# Should still pass even though index does not contain field
0 commit comments