rajanimaski created SOLR-8247:
---------------------------------
Summary: Schema API is not reloading the collection, When a
timestamp field is added through 'addField' api, for a collection that has
ManagedIndexSchemaFactory
Key: SOLR-8247
URL: https://issues.apache.org/jira/browse/SOLR-8247
Project: Solr
Issue Type: Bug
Components: Data-driven Schema
Affects Versions: 5.2.1
Environment: Solr 5.2.1, Managed-Schema-Type Collection
Reporter: rajanimaski
Priority: Minor
Add a field with defatult="NOW" attribute using 'addField' api
curl -X POST Content-Type application/json {
"add-field":{
"name":"timestamp",
"type":"date",
"indexed":true,
"multiValued":false,
"default":"NOW",
"stored":true }
}http://localhost:8983/solr/gettingstarted/schema
There will be an entry[1] in managed-schema but the collection is not reloaded
and therefore the timestamp would still not get added to document.
[1]<field name="timestamp" type="date" indexed="true" stored="true"
default="NOW" multiValued="false"/>
Make an explicit reload call and then you'd see the timestamp getting added to
each document.
http://localhost:8983/solr/admin/collections?action=RELOAD&name=<collection_name>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]