Skip to content

Changing the schema for an index is a noop [JIRA: RIAK-3415] #736

@smarj

Description

@smarj

You can run:

curl -XPUT http://localhost:8098/search/index/index_name) -H "Content-Type: application/json" -d '{"schema":" schemaV2"}'

on index_name that already exists with a schema of schemaV1, and receive no error. However, a later GET will return {"schema": schemaV1"}.

This code snippet shows that if the index exists, the index creation code is shortcut with no warning about the index existing.

It should be possible to change the associated schema using this method, or at least an error should be returned to the user that existing indexes can't be changed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions