# Does Elasticsearch \_ in between the field name?

**URL:** <https://discuss.elastic.co/t/does-elasticsearch---in-between-the-field-name/65786>\
**Category:** Elasticsearch\
**Created:** [November 11, 2016, 9:58am UTC](https://discuss.elastic.co/t/does-elasticsearch---in-between-the-field-name/65786 "2016-11-11T09:58:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)\
**Post date:** [November 11, 2016, 9:58am UTC](https://discuss.elastic.co/t/does-elasticsearch---in-between-the-field-name/65786/1 "2016-11-11T09:58:48Z")

</div>

master\_deal\_no is my field name while I'm trying to create mapping it throwing me mapper parsing exception.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 11, 2016, 9:59am UTC](https://discuss.elastic.co/t/does-elasticsearch---in-between-the-field-name/65786/2 "2016-11-11T09:59:08Z")

</div>

What is the error, the whole thing?

---

<div class="post-metadata">

**Author:** ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)\
**Post date:** [November 11, 2016, 9:59am UTC](https://discuss.elastic.co/t/does-elasticsearch---in-between-the-field-name/65786/3 "2016-11-11T09:59:50Z")

</div>

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "mapper_parsing_exception",
        "reason": "Expected map for property [fields] on field [acquiror_nation] but got a class java.lang.String"
      }
    ],
    "type": "mapper_parsing_exception",
    "reason": "Failed to parse mapping [ma]: Expected map for property [fields] on field [acquiror_nation] but got a class java.lang.String",
    "caused_by": {
      "type": "mapper_parsing_exception",
      "reason": "Expected map for property [fields] on field [acquiror_nation] but got a class java.lang.String"
    }
  },
  "status": 400
}

```

---

<div class="post-metadata">

**Author:** ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)\
**Post date:** [November 11, 2016, 10:00am UTC](https://discuss.elastic.co/t/does-elasticsearch---in-between-the-field-name/65786/4 "2016-11-11T10:00:11Z")

</div>

> [@kartheek91](#):
>
> acquiror\_nation

acquiror\_nation i also the field name

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [November 11, 2016, 2:39pm UTC](https://discuss.elastic.co/t/does-elasticsearch---in-between-the-field-name/65786/5 "2016-11-11T14:39:53Z")

</div>

It is telling you that you've got `"fields": "some_string"` somewhere in you mapping and that `"fields"` always takes a map like `{"name": "other"}`. [Here](https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html) is an example of `"fields"`.

---

<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:** [December 9, 2016, 2:40pm UTC](https://discuss.elastic.co/t/does-elasticsearch---in-between-the-field-name/65786/6 "2016-12-09T14:40:01Z")

</div>

Closed on December 9, 2016, 2:40pm UTC

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