You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "rajanimaski (JIRA)" <ji...@apache.org> on 2015/11/06 15:47:27 UTC

[jira] [Created] (SOLR-8247) Schema API is not reloading the collection, When a timestamp field is added through 'addField' api, for a collection that has ManagedIndexSchemaFactory

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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org