You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cassandra Targett (JIRA)" <ji...@apache.org> on 2018/01/10 20:32:04 UTC
[jira] [Resolved] (SOLR-4560) Document updates do not honor deleted
fields
[ https://issues.apache.org/jira/browse/SOLR-4560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cassandra Targett resolved SOLR-4560.
-------------------------------------
Resolution: Invalid
Marking this as Invalid since the behavior is not a bug: deleting a field from the schema doesn't delete it from the index, a reindex would be required if schema field definitions are changed.
> Document updates do not honor deleted fields
> --------------------------------------------
>
> Key: SOLR-4560
> URL: https://issues.apache.org/jira/browse/SOLR-4560
> Project: Solr
> Issue Type: Bug
> Components: update
> Affects Versions: 4.1
> Reporter: Neelesh Shastry
>
> Steps to reproduce
> * Lets assume we have 3 fields
> id, name,city
> * Create some documents
> * Remove the field "city"
> * Fire an update on name
> curl http://localhost:8983/solr/update -H 'Content-type:application/json' -d '
> [
> {
> "id" : "6",
> "name" : {"set":"New Name"}
> }]
> '
>
> You can see
>
> {"responseHeader":{"status":400,"QTime":83},"error":{"msg":"ERROR: [doc=6] unknown field 'city'","code":400}}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org