Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat put-mapping calls with _doc as a top-level key as typed calls. #38032

Merged
merged 5 commits into from
Jan 31, 2019

Commits on Jan 30, 2019

  1. Treat put-mapping calls with _doc as a top-level key as typed calls.

    Currently the put-mapping API assumes that because the type name is `_doc` then
    it is dealing with a typeless put-mapping call. Yet we still allow running the
    put-mapping API in a typed fashion with `_doc` as a type name. The current logic
    triggers surprising errors when doing a typed put-mapping call with `_doc` as a
    type name on an index that has a type already.
    
    This is a bit of a corner-case, but is more important on 6.x due to the fact
    that using the index API with `_doc` as a type name triggers typed calls to the
    put-mapping API with `_doc` as a type name.
    jpountz committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    0669240 View commit details
    Browse the repository at this point in the history
  2. iter

    jpountz committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    3f18fa7 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2019

  1. Configuration menu
    Copy the full SHA
    95175a7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    88bcd01 View commit details
    Browse the repository at this point in the history
  3. iter

    jpountz committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    eaec572 View commit details
    Browse the repository at this point in the history