(cherry picked from commit fb6e7a30c9eed1e8b83496aaf1efe7e2288f9dd8)
Closes: #36437
Extend querying support on multiple indices from being strictly identical to being just compatible. Use FieldCapabilities API (extended through #33803) for mapping merging. Close #31837 #31611