forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Removing unused fetch sub phase processor initialization duri…
…ng fetch… (opensearch-project#12503)" (opensearch-project#13486) This reverts commit da5b205. Signed-off-by: Andriy Redko <[email protected]>
- Loading branch information
1 parent
dd2620a
commit 5ce2d7a
Showing
9 changed files
with
68 additions
and
125 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
65 changes: 65 additions & 0 deletions
65
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,65 @@ | ||
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": | ||
- 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
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.