# Can't create an index when fields are with dots and names are similar

**URL:** <https://discuss.elastic.co/t/cant-create-an-index-when-fields-are-with-dots-and-names-are-similar/176345>\
**Category:** Elasticsearch\
**Created:** [April 11, 2019, 8:03am UTC](https://discuss.elastic.co/t/cant-create-an-index-when-fields-are-with-dots-and-names-are-similar/176345 "2019-04-11T08:03:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nithael](https://avatars.discourse-cdn.com/v4/letter/n/6a8cbe/32.png) [@nithael](https://discuss.elastic.co/u/nithael)\
**Post date:** [April 11, 2019, 8:03am UTC](https://discuss.elastic.co/t/cant-create-an-index-when-fields-are-with-dots-and-names-are-similar/176345/1 "2019-04-11T08:03:33Z")

</div>

Hi team,  
I'm facing the below error while creating an index (Elastic 6.0.2). My two properties names are quite similar (one contains the other) and both contains dots. Looks like Elastic is doing some kind of splitting by a dot and trying to merge those two object, and that's failing.

```
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [percolatorquery]: Can't merge a non object mapping [sales from u.s] with an object mapping [sales from u.s]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [percolatorquery]: Can't merge a non object mapping [sales from u.s] with an object mapping [sales from u.s]",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "Can't merge a non object mapping [sales from u.s] with an object mapping [sales from u.s]"
}
},
"status": 400
}

```

The actual fields name are: **'sales from u.s. 2019'** and **'sales from u.s.'** while exception is pointing to **'sales from u.s'** (without an end dot)

This is a part of my configuration:

```
"mappings": {
	"percolatorquery": {
	  "properties": {
		"sales from u.s. 2019": {
		  "type": "float",
		  "store": true,
		  "fields": {
			"sort": {
			  "type": "float"
			}
		  }
		},
		"sales from u.s.": {
		  "type": "text",
		  "store": true,
		  "fields": {
			"raw": {
			  "type": "keyword"
			},
			"text": {
			  "type": "text",
			  "store": true,
			  "analyzer": "Snowball",
			  "search_analyzer": "Snowball",
			  "norms": true,
			  "term_vector": "no"
			},
			"sort": {
			  "type": "keyword",
			  "normalizer": "sortStandard"
			}
		  },
		  "copy_to": []
		}
	  }

```

Please advise on that.  
Thank you

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [April 11, 2019, 9:23am UTC](https://discuss.elastic.co/t/cant-create-an-index-when-fields-are-with-dots-and-names-are-similar/176345/2 "2019-04-11T09:23:10Z")

</div>

Yes, fields are arranged in a hierarchy and dots are used as the separator. It's best not to use dots for other purposes in your field names.

---

<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:** [May 9, 2019, 9:30am UTC](https://discuss.elastic.co/t/cant-create-an-index-when-fields-are-with-dots-and-names-are-similar/176345/3 "2019-05-09T09:30:36Z")

</div>

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