Skip to content

Add schema update + index reloading [JIRA: RIAK-1591] #130

@rzezeski

Description

@rzezeski

After a conversation with someone on IRC it came to my attention that Yokozuna should support schema updates + index reloading sooner rather than later. The user was performing these basic steps that would better be handled by Yokozuna itself.

  1. Modify the schema.
  2. Copy the schema to /data/yz//conf/.xml on each node.
  3. Reboot each Riak node to reload the schema.
  4. New objects can use new fields. New fields can be queried on.

This could be done in Yokozuan like so:

  1. Modify schema.
  2. Update in Yokozuna: curl -X PUT -H 'content-type: application/json' 'http://host:port/yz/schema/<schema name>' --data-binary @<schema name>.xml
  3. Tell Yokozuna to reload the index: curl -X POST -H 'content-type: text/plain' 'http://host:port/yz/index/<index name>' RELOAD

This would use Solr's core RELOAD command and wouldn't require a restart.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions