# Deprecated "include\_in\_all"

**URL:** https://discuss.elastic.co/t/deprecated-include-in-all/110350
**Category:** Kibana
**Created:** [December 5, 2017, 12:56pm UTC](https://discuss.elastic.co/t/deprecated-include-in-all/110350 "2017-12-05T12:56:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jasonespo](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@Jasonespo](https://discuss.elastic.co/u/Jasonespo)
#### Post date: [December 5, 2017, 12:56pm UTC](https://discuss.elastic.co/t/deprecated-include-in-all/110350/1 "2017-12-05T12:56:17Z")

</div>

Hi all, how would I get the same functionality as this template by using the "copy\_to" on the mapping fields?

{  
"index\_patterns": [  
"tid\*"  
],  
"settings": {  
"index": {  
"number\_of\_shards": "5"  
}  
},  
"mappings": {  
"test": {  
"\_all": {  
"enabled": false  
},  
"dynamic\_templates": [  
{  
"message\_field": {  
"path\_match": "message",  
"match\_mapping\_type": "string",  
"mapping": {  
"norms": false,  
"type": "text"  
}  
}  
},  
{  
"string\_fields": {  
"match": "\*",  
"match\_mapping\_type": "string",  
"mapping": {  
"fields": {  
"keyword": {  
"type": "keyword"  
}  
}  
}  
}  
}  
],  
"numeric\_detection": true,  
"properties": {  
"@timestamp": {  
"type": "date",  
"include\_in\_all": false  
},  
"@version": {  
"type": "keyword",  
"include\_in\_all": false  
},  
"clock": {  
"type": "long"  
},  
"test\_Id": {  
"type": "keyword"  
},  
"test\_Name": {  
"type": "keyword"  
},  
"test\_type": {  
"type": "keyword"  
},  
"test\_result": {  
"type": "keyword"  
},  
"test1\_Id": {  
"type": "keyword"  
},  
"test\_Name": {  
"type": "keyword"  
},  
"destination\_ip": {  
"type": "keyword"  
},  
"destination\_ip\_lookup": {  
"type": "keyword"  
},  
"destination\_tcp\_udp\_port": {  
"type": "long"

```
      }
    }
  }
},
"aliases": {}

```

}

---

<div class="post-metadata">

### Author: ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)
#### Post date: [December 5, 2017, 6:58pm UTC](https://discuss.elastic.co/t/deprecated-include-in-all/110350/2 "2017-12-05T18:58:06Z")

</div>

Hi @Jasonespo,

the [Custom All FIelds](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/mapping-all-field.html#custom-all-fields) section of the documentation gives an example of that. In order for all queries against an index to use the "custom all field" the `index.query.default_field` index setting can be changed accordingly.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 2, 2018, 6:58pm UTC](https://discuss.elastic.co/t/deprecated-include-in-all/110350/3 "2018-01-02T18:58:09Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
