forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 2.x] Revert "Removing unused fetch sub phase processor init…
…ialization during fetch… (opensearch-project#12503)" (opensearch-project#13491) * Revert "Removing unused fetch sub phase processor initialization during fetch… (opensearch-project#12503)" (opensearch-project#13486) This reverts commit da5b205. Signed-off-by: Andriy Redko <[email protected]> (cherry picked from commit 5133e5f) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Signed-off-by: Andriy Redko <[email protected]> * Update 400_inner_hits.yml Signed-off-by: Andriy Redko <[email protected]> --------- Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Andriy Redko <[email protected]>
- Loading branch information
1 parent
291f686
commit af2e109
Showing
8 changed files
with
71 additions
and
121 deletions.
There are no files selected for viewing
This file contains 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
68 changes: 68 additions & 0 deletions
68
rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/400_inner_hits.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
setup: | ||
- do: | ||
indices.create: | ||
index: test_1 | ||
body: | ||
settings: | ||
number_of_replicas: 0 | ||
mappings: | ||
properties: | ||
list_id: | ||
type: integer | ||
names: | ||
type: nested | ||
properties: | ||
full_name: | ||
type: text | ||
|
||
- do: | ||
bulk: | ||
refresh: true | ||
body: | ||
- index: | ||
_index: test_1 | ||
_id: 1 | ||
- list_id: 1 | ||
names: | ||
- full_name: John Doe | ||
- full_name: John Micheal Doe | ||
- index: | ||
_index: test_1 | ||
_id: 2 | ||
- list_id: 2 | ||
names: | ||
- full_name: Jane Doe | ||
- full_name: Jane Michelle Doe | ||
|
||
--- | ||
"Include inner hits in top hits": | ||
- skip: | ||
version: " - 2.13.99" | ||
reason: "the regression was fixed in 2.14.0" | ||
- do: | ||
search: | ||
rest_total_hits_as_int: true | ||
body: | ||
query: | ||
nested: | ||
path: names | ||
query: | ||
match: | ||
names.full_name: Doe | ||
inner_hits: { } | ||
size: 0 | ||
aggs: | ||
lists: | ||
terms: | ||
field: list_id | ||
aggs: | ||
top_result: | ||
top_hits: | ||
size: 10 | ||
|
||
- length: { hits.hits: 0 } | ||
- length: { aggregations.lists.buckets: 2 } | ||
- length: { aggregations.lists.buckets.0.top_result.hits.hits: 1 } | ||
- length: { aggregations.lists.buckets.0.top_result.hits.hits.0.inner_hits.names.hits.hits: 2 } | ||
- length: { aggregations.lists.buckets.1.top_result.hits.hits: 1 } | ||
- length: { aggregations.lists.buckets.1.top_result.hits.hits.0.inner_hits.names.hits.hits: 2 } |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
53 changes: 0 additions & 53 deletions
53
server/src/test/java/org/opensearch/search/fetch/subphase/InnerHitsPhaseTests.java
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
server/src/test/java/org/opensearch/search/fetch/subphase/ScriptFieldsPhaseTests.java
This file was deleted.
Oops, something went wrong.