Mappings: The get field mappings API should raise an error when shards are not allocated #7460
Labels
>bug
:Data Management/Indices APIs
APIs to create and manage indices and templates
good first issue
low hanging fruit
help wanted
adoptme
The get fields mapping API is different from the get mappings since it goes to shards instead of the master node, since shards have per-field lookup structures that the master node doesn't have.
However, this can have some disappointing side effects in case no shards of the requested index are allocated: the API will return empty mappings. Instead this API should raise an error when shards are not allocated.
The text was updated successfully, but these errors were encountered: