[BUG] Unused fetch sub phase processors initialized during fetch phase #12502
Labels
bug
Something isn't working
Search:Performance
v2.13.0
Issues and PRs related to version 2.13.0
v3.0.0
Issues and PRs related to version 3.0.0
Describe the bug
Opensearch initializes sub processors even if are not getting used during the fetch phase. Can be prevented by validating if size of fields is greater than zero in addition to it being non-null. Take below snippet from
InnerHitsPhase
class:This should not get initialized if the innerHits count is 0
Related component
Search:Performance
To Reproduce
Expected behavior
Unnecessary initialization of fetch sub phase processor should be skipped
Additional Details
No response
The text was updated successfully, but these errors were encountered: