kibana/test
Davis McPhee 80c142a5db
[Search] Fix unrecognized parameter: [indexType] error (#212707)
## Summary

This PR fixes an issue introduced in #208776 where switching from ES|QL
mode to classic mode in Discover caused the search request to fail with
an `unrecognized parameter: [indexType]` error. This was because the
`indexType` was actually being sent as part of the search request
`params` when it shouldn't have been.

We already had some rollup tests that would have caught it, but a
workaround was also added to the rollup search strategy to sidestep the
issue, preventing the tests from failing. That workaround has been
removed and existing ES|QL tests updated to catch the issue specifically
for ES|QL mode.

Fixes #212704.

### Checklist

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2025-03-04 20:33:41 -04:00
..
accessibility [Console] UX Improvements for phase 2 (#190698) 2024-09-17 16:35:20 +03:00
analytics [kbn-scout] add test config category to reporting (#210167) 2025-02-12 11:17:04 +01:00
api_integration Upgrade ES client to 9.0.0-alpha.3 (#208776) 2025-02-25 14:37:23 +00:00
common FTR - optimize service initialization (#212421) 2025-02-27 11:35:47 +01:00
examples [Dashboard] Remove mSearch from content management (#210709) 2025-03-03 11:31:09 -05:00
functional [Search] Fix unrecognized parameter: [indexType] error (#212707) 2025-03-04 20:33:41 -04:00
harden Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
health_gateway [kbn-scout] add test config category to reporting (#210167) 2025-02-12 11:17:04 +01:00
interactive_setup_api_integration Upgrade ES client to 9.0.0-alpha.3 (#208776) 2025-02-25 14:37:23 +00:00
interactive_setup_functional Upgrade ES client to 9.0.0-alpha.3 (#208776) 2025-02-25 14:37:23 +00:00
interpreter_functional [kbn-scout] add test config category to reporting (#210167) 2025-02-12 11:17:04 +01:00
node_roles_functional [kbn-scout] add test config category to reporting (#210167) 2025-02-12 11:17:04 +01:00
package [CI / FIPS] Convert smoke tests to use FIPS agent (#186858) 2024-06-26 12:55:51 -07:00
plugin_functional unskip Failing test: Plugin Functional Tests.test/plugin_functional/test_suites/panel_actions/index·ts (#211638) 2025-02-19 12:16:41 -07:00
scripts [ci] Remove jenkins config (#173745) 2023-12-21 12:09:43 -06:00
server_integration [kbn-scout] update category of server integration tests (#210783) 2025-02-12 17:23:20 +01:00
ui_capabilities/newsfeed_err Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc Sustainable Kibana Architecture: Categorise straightforward packages (#199630) 2024-11-22 10:33:25 +01:00
tsconfig.json SKA: Relocate "platform" packages that remain on /packages (#208704) 2025-02-24 11:03:30 +00:00