mydoghasworms
mydoghasworms

Reputation: 18591

Is it possible to modify a schema using the rest API in Apache Solr?

I think the title is self-explanatory.

I don't see anything on the Apache Solr wiki that suggests you can maintain the schema of an Apache Solr instance using the ReST API, but maybe (hopefully) you know something I don't.

Upvotes: 0

Views: 1200

Answers (1)

mydoghasworms
mydoghasworms

Reputation: 18591

I just found a section on the Solr wiki where they describe this exact feature for release 4.4 (which is not released yet).

It does have some prerequisite configuration on the Solr instance, but it does allow you to add fields to the schema. Based on that information, I can't see why they won't eventually extend the functionality to allow you to delete as well. I guess we will have to wait and see.

Here is the link to that section: http://wiki.apache.org/solr/SchemaRESTAPI#Adding_fields_to_a_schema. It also references this JIRA issue: "In preparation for dynamic schema modification via REST API, add a "managed" schema facility".

Upvotes: 1

Related Questions