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

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

Open
smarj opened this issue Apr 20, 2017 · 0 comments
Open

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

smarj opened this issue Apr 20, 2017 · 0 comments

Comments

@smarj
Copy link

smarj commented Apr 20, 2017

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.

@Basho-JIRA Basho-JIRA changed the title Changing the schema for an index is a noop Changing the schema for an index is a noop [JIRA: RIAK-3415] Apr 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants