# Equivalent setting for following mapping in Elasticsearch 5.x

**URL:** <https://discuss.elastic.co/t/equivalent-setting-for-following-mapping-in-elasticsearch-5-x/80104>\
**Category:** Elasticsearch\
**Created:** [March 27, 2017, 9:02am UTC](https://discuss.elastic.co/t/equivalent-setting-for-following-mapping-in-elasticsearch-5-x/80104 "2017-03-27T09:02:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 31, 2017, 6:41am UTC](https://discuss.elastic.co/t/equivalent-setting-for-following-mapping-in-elasticsearch-5-x/80104/2 "2017-03-31T06:41:23Z")

</div>

For now, the only way to solve that I believe is at index time or using an ingest script processor.

I opened the following issue for discussion:

> <https://github.com/elastic/elasticsearch/issues/23839>
>
> \`\`\`
> DELETE test
> PUT test
> {
> "mappings": {
> "my\_type": {
> "propert…ies": {
> "status\_code": {
> "type": "text",
> "null\_value": "NULL" 
> }
> }
> }
> }
> }
> \`\`\`
> 
> This is now failing in 5.x.
> 
> Either it's a bug and we should still support it or we should document it as a breaking change for people who are moving their \`string\` mapping to \`text\`.
> 
> Thoughts?

See also

> [@Why null\_value parameter has been removed for text field type?](https://discuss.elastic.co/t/why-null-value-parameter-has-been-removed-for-text-field-type/79882):
>
> I was searching for reasons behind removing null\_value parameter for text field mapping. But I didn't find any resources or some change log online. Can somebody help me out regarding this? Thanks in advance!

---

_[View the full topic](https://discuss.elastic.co/t/equivalent-setting-for-following-mapping-in-elasticsearch-5-x/80104)._
