# Dot in field name

**URL:** https://discuss.elastic.co/t/dot-in-field-name/79069
**Category:** Elasticsearch
**Created:** [March 17, 2017, 5:29pm UTC](https://discuss.elastic.co/t/dot-in-field-name/79069 "2017-03-17T17:29:40Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![123avi](https://avatars.discourse-cdn.com/v4/letter/1/71e660/32.png) [@123avi](https://discuss.elastic.co/u/123avi)
#### Post date: [March 17, 2017, 5:29pm UTC](https://discuss.elastic.co/t/dot-in-field-name/79069/1 "2017-03-17T17:29:40Z")

</div>

I start using 5.2.2  
I am adding documents with dot in field name i.e

> im.name , im.type  
> looking at this mapping :  
> "im":{  
> "properties":{  
> "name":{"type": "text", "analyzer": "whitespace"},  
> "type":{"type": "text", "analyzer": "whitespace"}  
> }  
> }  
> why the im doesn't have "object" type as described [here] ([Dots in field names | Elasticsearch Guide [2.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/dots-in-names.html))  
> ?  
> how can I get all fields key set ?  
> e.g im.name , im.type ...  
> if I query the properties field I am getting just the first level key set (im)

---

<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 17, 2017, 5:45pm UTC](https://discuss.elastic.co/t/dot-in-field-name/79069/2 "2017-03-17T17:45:49Z")

</div>

It's not needed actually but it is an object.

I don't understand the last question though. Example?

---

<div class="post-metadata">

### Author: ![123avi](https://avatars.discourse-cdn.com/v4/letter/1/71e660/32.png) [@123avi](https://discuss.elastic.co/u/123avi)
#### Post date: [March 17, 2017, 6:32pm UTC](https://discuss.elastic.co/t/dot-in-field-name/79069/3 "2017-03-17T18:32:57Z")

</div>

Thank you @dadoonet , I guess you are right. only objects have "properties" correct ?. as for my second question , if I have the following mapping:  
"properties": {  
"name": { "type": "text" },  
"article": {  
"properties": {  
"id": { "type": "text" },  
"title": { "type": "text"},  
"abstract": { "type": "text"},  
"author": {  
"properties": {  
"id": { "type": "text" },  
"name": { "type": "text" }  
}}}} } }  
**is it possible to get all fields full name ?**  
like this:

> name,  
> article.id ,  
> article.title ,  
> article.abstract ,  
> article.author.id,  
> article.author.name

thanks

---

<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 17, 2017, 7:20pm UTC](https://discuss.elastic.co/t/dot-in-field-name/79069/4 "2017-03-17T19:20:50Z")

</div>

> [@123avi](#):
>
> is it possible to get all fields full name ?

Very sorry but I don't understand what you mean here. May be someone else?

---

<div class="post-metadata">

### Author: ![123avi](https://avatars.discourse-cdn.com/v4/letter/1/71e660/32.png) [@123avi](https://discuss.elastic.co/u/123avi)
#### Post date: [March 17, 2017, 8:09pm UTC](https://discuss.elastic.co/t/dot-in-field-name/79069/5 "2017-03-17T20:09:04Z")

</div>

simply I want to get a list of all fields

---

<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 17, 2017, 8:23pm UTC](https://discuss.elastic.co/t/dot-in-field-name/79069/6 "2017-03-17T20:23:15Z")

</div>

```
GET index/_mapping
```

---

<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: [April 14, 2017, 8:23pm UTC](https://discuss.elastic.co/t/dot-in-field-name/79069/7 "2017-04-14T20:23:19Z")

</div>

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