OpenSearch/x-pack/plugin/security
Adrien Grand d24b40f688
Make typeless APIs usable with indices whose type name is different from `_doc` (#35790)
This commit makes `document`, `update`, `explain`, `termvectors` and `mapping`
typeless APIs work on indices that have a type whose name is not `_doc`.
Unfortunately, this needs to be a bit of a hack since I didn't want calls with
random type names to see documents with the type name that the user had chosen
upon type creation.

The `explain` and `termvectors` do not support being called without a type for
now so the test is just using `_doc` as a type for now, we will need to fix
tests later but this shouldn't require further changes server-side since passing
`_doc` as a type name is what typeless APIs do internally anyway.

Relates #35190
2018-12-04 19:22:17 +01:00
..
cli Upgrade forbiddenapis to 2.6 (#33809) 2018-10-23 12:06:46 +03:00
forbidden Migrate x-pack-elasticsearch source to elasticsearch 2018-04-20 15:29:54 -07:00
licenses LOGGING: Upgrade to Log4J 2.11.1 (#32616) 2018-08-06 14:56:21 +02:00
src Make typeless APIs usable with indices whose type name is different from `_doc` (#35790) 2018-12-04 19:22:17 +01:00
build.gradle Security: upgrade unboundid ldapsdk to 4.0.8 (#34247) 2018-10-03 12:31:19 -06:00