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:59:27 UTC

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

     [ https://issues.apache.org/jira/browse/SOLR-8247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

rajanimaski updated SOLR-8247:
------------------------------
    Description: 
Add a field with defatult="NOW" attribute using 'addField' api
{code}
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

{code}
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>






  was:
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>







> 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
> {code}
> 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
> {code}
> 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