实时更新solr schema.xml for Solr 4.10.1
Update solr schema.xml in real time for Solr 4.10.1
我知道在 Solr 5.0 中,他们提供了一个 REST API 来使用 Curl 实时更新模式。但是,对于我的 Solr 4.10.1 的早期版本,我无法做到这一点。
想问一下这个功能是否适用于较早版本的Solr,curl语法是否与Solr 5.0相同?
根据 Solr Wiki,可以从 Solr 4.2 请求模式并从 Solr 4.4 开始修改它
In order to enable schema modifications via the Schema REST API, the
schema implementation must be declared as managed by Solr, that is,
not to be manually edited.
Further, the schema must be configured as mutable in order to make
modifications to it.
Both of these schema features (managed and mutable) are configured via
the element in solrconfig.xml.
我知道在 Solr 5.0 中,他们提供了一个 REST API 来使用 Curl 实时更新模式。但是,对于我的 Solr 4.10.1 的早期版本,我无法做到这一点。
想问一下这个功能是否适用于较早版本的Solr,curl语法是否与Solr 5.0相同?
根据 Solr Wiki,可以从 Solr 4.2 请求模式并从 Solr 4.4 开始修改它
In order to enable schema modifications via the Schema REST API, the schema implementation must be declared as managed by Solr, that is, not to be manually edited.
Further, the schema must be configured as mutable in order to make modifications to it.
Both of these schema features (managed and mutable) are configured via the element in solrconfig.xml.