# Unable to use Multiple fields in mappings

**URL:** <https://discuss.elastic.co/t/unable-to-use-multiple-fields-in-mappings/22499>\
**Category:** Elasticsearch\
**Created:** [March 3, 2015, 9:37pm UTC](https://discuss.elastic.co/t/unable-to-use-multiple-fields-in-mappings/22499 "2015-03-03T21:37:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Austin\_Harmon](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Austin\_Harmon](https://discuss.elastic.co/u/Austin_Harmon)\
**Post date:** [March 3, 2015, 9:37pm UTC](https://discuss.elastic.co/t/unable-to-use-multiple-fields-in-mappings/22499/1 "2015-03-03T21:37:09Z")

</div>

Hello,

Here is the curl command I am trying to run:  
curl -XPUT 'localhost:9200/historicdata/docs/\_mapping' -d '{"docs" :  
{"properties" : {"file" : {"type" : "attachment", "fields" : {"title" :  
{"store" : "yes"}, "file" : {"store" : "yes"}}}}}}'  
{"error":"NoSuchMethodError[org.elasticsearch.index.mapper.core.TypeParsers.parseMultiField(Lorg/elasticsearch/index/mapper/core/AbstractFieldMapper$Builder;Ljava/lang/String;Lorg/elasticsearch/index/mapper/Mapper$TypeParser$ParserContext;Ljava/lang/String;Ljava/lang/Object;)V]",  
"status":500}  
I also tried this:  
curl -XPUT 'localhost:9200/historicdata/docs/\_mapping' -d '{"mappings" :  
{"docs" : {"properties" : {"file" : {"type" : "attachment", "fields" :  
{"title" : {"store" : "yes"}, "file" : {"store" : "yes"}}}}}}}}'  
{"error":"MapperParsingException[Root type mapping not empty after parsing!  
Remaining fields: [mappings : {docs={properties={file={type=attachment,  
fields={title={store=yes}, file={store=yes}}}}}}]]","status":400}

Has anyone seen this before when using multiple fields. When I run this  
command it works:  
curl -XPUT '[http://localhost:9200/historicdata/?pretty=1](http://localhost:9200/historicdata/?pretty=1)' -d '{"mappings" :  
{"docs" : {"properties" : {"file" : {"type" : "attachment"} } } } }'

I've tried this:  
curl -XPUT '[http://localhost:9200/historicdata/?pretty=1](http://localhost:9200/historicdata/?pretty=1)' -d '{"mappings" :  
{docs" : {"properties" : {"file" : {"type" : "attachment", "fields" :  
{"file" : {"index" : "no"}, "title" : {"store" : "yes"}}}}}}}'  
{  
"error" :  
"NoSuchMethodError[org.elasticsearch.index.mapper.core.TypeParsers.parseMultiField(Lorg/elasticsearch/index/mapper/core/AbstractFieldMapper$Builder;Ljava/lang/String;Lorg/elasticsearch/index/mapper/Mapper$TypeParser$ParserContext;Ljava/lang/String;Ljava/lang/Object;)V]",  
"status" : 500}

I am using attachment mapper version 2.4.3 with elasticsearch 1.3.2

Thanks,  
Austin Harmon

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/7f7dbcf6-2ce5-478f-9bb0-0a890fd6c765%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7f7dbcf6-2ce5-478f-9bb0-0a890fd6c765%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 3, 2015, 9:51pm UTC](https://discuss.elastic.co/t/unable-to-use-multiple-fields-in-mappings/22499/2 "2015-03-03T21:51:04Z")

</div>

In this example:  
curl -XPUT '[http://localhost:9200/historicdata/?pretty=1](http://localhost:9200/historicdata/?pretty=1)' -d '{"mappings" : {docs" : {"properties" : {"file" : {"type" : "attachment", "fields" : {"file" : {"index" : "no"}, "title" : {"store" : "yes"}}}}}}}'

docs" should be "docs".

For the first curl a bracket is missing. Check your JSON with SENSE or here for example: [http://jsonformatter.curiousconcept.com/](http://jsonformatter.curiousconcept.com/)

David

> Le 3 mars 2015 à 22:37, Austin Harmon [aharmon2165@gmail.com](mailto:aharmon2165@gmail.com) a écrit :
> 
> Hello,
> 
> Here is the curl command I am trying to run:  
> curl -XPUT 'localhost:9200/historicdata/docs/\_mapping' -d '{"docs" : {"properties" : {"file" : {"type" : "attachment", "fields" : {"title" : {"store" : "yes"}, "file" : {"store" : "yes"}}}}}}'  
> {"error":"NoSuchMethodError[org.elasticsearch.index.mapper.core.TypeParsers.parseMultiField(Lorg/elasticsearch/index/mapper/core/AbstractFieldMapper$Builder;Ljava/lang/String;Lorg/elasticsearch/index/mapper/Mapper$TypeParser$ParserContext;Ljava/lang/String;Ljava/lang/Object;)V]", "status":500}  
> I also tried this:  
> curl -XPUT 'localhost:9200/historicdata/docs/\_mapping' -d '{"mappings" : {"docs" : {"properties" : {"file" : {"type" : "attachment", "fields" : {"title" : {"store" : "yes"}, "file" : {"store" : "yes"}}}}}}}}'  
> {"error":"MapperParsingException[Root type mapping not empty after parsing! Remaining fields: [mappings : {docs={properties={file={type=attachment, fields={title={store=yes}, file={store=yes}}}}}}]]","status":400}
> 
> Has anyone seen this before when using multiple fields. When I run this command it works:  
> curl -XPUT '[http://localhost:9200/historicdata/?pretty=1](http://localhost:9200/historicdata/?pretty=1)' -d '{"mappings" : {"docs" : {"properties" : {"file" : {"type" : "attachment"} } } } }'
> 
> I've tried this:  
> curl -XPUT '[http://localhost:9200/historicdata/?pretty=1](http://localhost:9200/historicdata/?pretty=1)' -d '{"mappings" : {docs" : {"properties" : {"file" : {"type" : "attachment", "fields" : {"file" : {"index" : "no"}, "title" : {"store" : "yes"}}}}}}}'  
> {  
> "error" : "NoSuchMethodError[org.elasticsearch.index.mapper.core.TypeParsers.parseMultiField(Lorg/elasticsearch/index/mapper/core/AbstractFieldMapper$Builder;Ljava/lang/String;Lorg/elasticsearch/index/mapper/Mapper$TypeParser$ParserContext;Ljava/lang/String;Ljava/lang/Object;)V]", "status" : 500}
> 
> I am using attachment mapper version 2.4.3 with elasticsearch 1.3.2
> 
> ## Thanks, Austin Harmon
> 
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/7f7dbcf6-2ce5-478f-9bb0-0a890fd6c765%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7f7dbcf6-2ce5-478f-9bb0-0a890fd6c765%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/AEF3F0EE-A56A-42B5-AC6C-D60245C80C7B%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/AEF3F0EE-A56A-42B5-AC6C-D60245C80C7B%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Austin\_Harmon](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Austin\_Harmon](https://discuss.elastic.co/u/Austin_Harmon)\
**Post date:** [March 3, 2015, 10:31pm UTC](https://discuss.elastic.co/t/unable-to-use-multiple-fields-in-mappings/22499/3 "2015-03-03T22:31:03Z")

</div>

I miss typed in my post. I have all the appropriate quotations and  
brackets. Sorry for the confusion.

On Tuesday, March 3, 2015 at 3:51:27 PM UTC-6, David Pilato wrote:

> In this example:  
> curl -XPUT '[http://localhost:9200/historicdata/?pretty=1](http://localhost:9200/historicdata/?pretty=1)' -d '{"mappings"  
> : {docs" : {"properties" : {"file" : {"type" : "attachment", "fields" :  
> {"file" : {"index" : "no"}, "title" : {"store" : "yes"}}}}}}}'
> 
> docs" should be "docs".
> 
> For the first curl a bracket is missing. Check your JSON with SENSE or  
> here for example: [http://jsonformatter.curiousconcept.com/](http://jsonformatter.curiousconcept.com/)
> 
> David
> 
> Le 3 mars 2015 à 22:37, Austin Harmon \<[aharm...@gmail.com](mailto:aharm...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> Hello,
> 
> Here is the curl command I am trying to run:  
> curl -XPUT 'localhost:9200/historicdata/docs/\_mapping' -d '{"docs" :  
> {"properties" : {"file" : {"type" : "attachment", "fields" : {"title" :  
> {"store" : "yes"}, "file" : {"store" : "yes"}}}}}}'  
> {"error":"NoSuchMethodError[org.elasticsearch.index.mapper.core.TypeParsers.parseMultiField(Lorg/elasticsearch/index/mapper/core/AbstractFieldMapper$Builder;Ljava/lang/String;Lorg/elasticsearch/index/mapper/Mapper$TypeParser$ParserContext;Ljava/lang/String;Ljava/lang/Object;)V]",  
> "status":500}  
> I also tried this:  
> curl -XPUT 'localhost:9200/historicdata/docs/\_mapping' -d '{"mappings" :  
> {"docs" : {"properties" : {"file" : {"type" : "attachment", "fields" :  
> {"title" : {"store" : "yes"}, "file" : {"store" : "yes"}}}}}}}}'  
> {"error":"MapperParsingException[Root type mapping not empty after  
> parsing! Remaining fields: [mappings :  
> {docs={properties={file={type=attachment, fields={title={store=yes},  
> file={store=yes}}}}}}]]","status":400}
> 
> Has anyone seen this before when using multiple fields. When I run this  
> command it works:  
> curl -XPUT '[http://localhost:9200/historicdata/?pretty=1](http://localhost:9200/historicdata/?pretty=1)' -d '{"mappings"  
> : {"docs" : {"properties" : {"file" : {"type" : "attachment"} } } } }'
> 
> I've tried this:  
> curl -XPUT '[http://localhost:9200/historicdata/?pretty=1](http://localhost:9200/historicdata/?pretty=1)' -d '{"mappings"  
> : {docs" : {"properties" : {"file" : {"type" : "attachment", "fields" :  
> {"file" : {"index" : "no"}, "title" : {"store" : "yes"}}}}}}}'  
> {  
> "error" :  
> "NoSuchMethodError[org.elasticsearch.index.mapper.core.TypeParsers.parseMultiField(Lorg/elasticsearch/index/mapper/core/AbstractFieldMapper$Builder;Ljava/lang/String;Lorg/elasticsearch/index/mapper/Mapper$TypeParser$ParserContext;Ljava/lang/String;Ljava/lang/Object;)V]",  
> "status" : 500}
> 
> I am using attachment mapper version 2.4.3 with elasticsearch 1.3.2
> 
> Thanks,  
> Austin Harmon
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/7f7dbcf6-2ce5-478f-9bb0-0a890fd6c765%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7f7dbcf6-2ce5-478f-9bb0-0a890fd6c765%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/7f7dbcf6-2ce5-478f-9bb0-0a890fd6c765%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/7f7dbcf6-2ce5-478f-9bb0-0a890fd6c765%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/89f64842-521a-4588-a72e-68a99cbd9052%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/89f64842-521a-4588-a72e-68a99cbd9052%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 4, 2015, 6:08am UTC](https://discuss.elastic.co/t/unable-to-use-multiple-fields-in-mappings/22499/4 "2015-03-04T06:08:20Z")

</div>

What they are?  
I mean can you post a real correct example?

David

> Le 3 mars 2015 à 23:31, Austin Harmon [aharmon2165@gmail.com](mailto:aharmon2165@gmail.com) a écrit :
> 
> I miss typed in my post. I have all the appropriate quotations and brackets. Sorry for the confusion.
> 
> > On Tuesday, March 3, 2015 at 3:51:27 PM UTC-6, David Pilato wrote:  
> > In this example:  
> > curl -XPUT '[http://localhost:9200/historicdata/?pretty=1](http://localhost:9200/historicdata/?pretty=1)' -d '{"mappings" : {docs" : {"properties" : {"file" : {"type" : "attachment", "fields" : {"file" : {"index" : "no"}, "title" : {"store" : "yes"}}}}}}}'
> > 
> > docs" should be "docs".
> > 
> > For the first curl a bracket is missing. Check your JSON with SENSE or here for example: [http://jsonformatter.curiousconcept.com/](http://jsonformatter.curiousconcept.com/)
> > 
> > David
> > 
> > > Le 3 mars 2015 à 22:37, Austin Harmon [aharm...@gmail.com](mailto:aharm...@gmail.com) a écrit :
> > > 
> > > Hello,
> > > 
> > > Here is the curl command I am trying to run:  
> > > curl -XPUT 'localhost:9200/historicdata/docs/\_mapping' -d '{"docs" : {"properties" : {"file" : {"type" : "attachment", "fields" : {"title" : {"store" : "yes"}, "file" : {"store" : "yes"}}}}}}'  
> > > {"error":"NoSuchMethodError[org.elasticsearch.index.mapper.core.TypeParsers.parseMultiField(Lorg/elasticsearch/index/mapper/core/AbstractFieldMapper$Builder;Ljava/lang/String;Lorg/elasticsearch/index/mapper/Mapper$TypeParser$ParserContext;Ljava/lang/String;Ljava/lang/Object;)V]", "status":500}  
> > > I also tried this:  
> > > curl -XPUT 'localhost:9200/historicdata/docs/\_mapping' -d '{"mappings" : {"docs" : {"properties" : {"file" : {"type" : "attachment", "fields" : {"title" : {"store" : "yes"}, "file" : {"store" : "yes"}}}}}}}}'  
> > > {"error":"MapperParsingException[Root type mapping not empty after parsing! Remaining fields: [mappings : {docs={properties={file={type=attachment, fields={title={store=yes}, file={store=yes}}}}}}]]","status":400}
> > > 
> > > Has anyone seen this before when using multiple fields. When I run this command it works:  
> > > curl -XPUT '[http://localhost:9200/historicdata/?pretty=1](http://localhost:9200/historicdata/?pretty=1)' -d '{"mappings" : {"docs" : {"properties" : {"file" : {"type" : "attachment"} } } } }'
> > > 
> > > I've tried this:  
> > > curl -XPUT '[http://localhost:9200/historicdata/?pretty=1](http://localhost:9200/historicdata/?pretty=1)' -d '{"mappings" : {docs" : {"properties" : {"file" : {"type" : "attachment", "fields" : {"file" : {"index" : "no"}, "title" : {"store" : "yes"}}}}}}}'  
> > > {  
> > > "error" : "NoSuchMethodError[org.elasticsearch.index.mapper.core.TypeParsers.parseMultiField(Lorg/elasticsearch/index/mapper/core/AbstractFieldMapper$Builder;Ljava/lang/String;Lorg/elasticsearch/index/mapper/Mapper$TypeParser$ParserContext;Ljava/lang/String;Ljava/lang/Object;)V]", "status" : 500}
> > > 
> > > I am using attachment mapper version 2.4.3 with elasticsearch 1.3.2
> > > 
> > > ## Thanks, Austin Harmon
> > > 
> > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/7f7dbcf6-2ce5-478f-9bb0-0a890fd6c765%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7f7dbcf6-2ce5-478f-9bb0-0a890fd6c765%40googlegroups.com).  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/89f64842-521a-4588-a72e-68a99cbd9052%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/89f64842-521a-4588-a72e-68a99cbd9052%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/64A55A73-8E65-4DCA-8651-39BA08800C43%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/64A55A73-8E65-4DCA-8651-39BA08800C43%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Austin\_Harmon](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Austin\_Harmon](https://discuss.elastic.co/u/Austin_Harmon)\
**Post date:** [March 4, 2015, 4:00pm UTC](https://discuss.elastic.co/t/unable-to-use-multiple-fields-in-mappings/22499/5 "2015-03-04T16:00:44Z")

</div>

Here is the mapping I'm trying to make work:  
curl -XPUT '[http://localhost:9200/historicdata/?pretty=1](http://localhost:9200/historicdata/?pretty=1)' -d '{"mappings" :  
{"docs" : {"properties" : {"file" : {"type" : "attachment", "fields" :  
{"file" : {"index" : "no"}, "title" : {"store" : "yes"}, "keywords" :  
{"store" : "yes"}, "content\_type" : {"store" : "yes"}, "content\_length" :  
{"store" : "yes"}}}}}}}'

This is the error:  
{  
"error" :  
"NoSuchMethodError[org.elasticsearch.index.mapper.core.TypeParsers.parseMultiField(Lorg/elasticsearch/index/mapper/core/AbstractFieldMapper$Builder;Ljava/lang/String;Lorg/elasticsearch/index/mapper/Mapper$TypeParser$ParserContext;Ljava/lang/String;Ljava/lang/Object;)V]",  
"status" : 500

}

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/20e7f48d-00bf-467c-9a2a-cd02a45bf423%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/20e7f48d-00bf-467c-9a2a-cd02a45bf423%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Austin\_Harmon](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Austin\_Harmon](https://discuss.elastic.co/u/Austin_Harmon)\
**Post date:** [March 5, 2015, 4:11pm UTC](https://discuss.elastic.co/t/unable-to-use-multiple-fields-in-mappings/22499/6 "2015-03-05T16:11:16Z")

</div>

Hello,

I've tried this now, I found it on an issue that you, David, opened up with  
the plugin.:  
curl -XPUT '[http://localhost:9200/historicdata/\_mappings/docs](http://localhost:9200/historicdata/_mappings/docs)' -d '{"docs"  
: {"properties" : {"file" : {"type" : "attachment", "path" : "full",  
"fields" : {"file" : {"type" : "multifield", "fields" : {"file" : {"index"  
: "no"}, "title" : {"type" : "string", "store" : "yes"}}}}}}}}'  
{"error" : "NullPointerException[null]", "status" : 500}

curl -XPUT '[http://localhost:9200/historicdata/?pretty=1](http://localhost:9200/historicdata/?pretty=1)' -d '{"mappings :  
{"docs" : {"properties" : {"file" : {"type" : "attachment", "path" :  
"full", "fields" : {"file" : {"type" : "multifield", "fields" : {"file" :  
{"index" : "no"}, "title" : {"type" : "string", "store" : "yes"}}}}}}}}}'  
{"error" : "MapperParsingException[mapping [docs]]; nested:  
NullPointerException; ", "status" : "400"}

Please let me know if you know what the issue is

Thank you,  
Austin  
On Wednesday, March 4, 2015 at 10:00:44 AM UTC-6, Austin Harmon wrote:

> Here is the mapping I'm trying to make work:  
> curl -XPUT '[http://localhost:9200/historicdata/?pretty=1](http://localhost:9200/historicdata/?pretty=1)' -d '{"mappings"  
> : {"docs" : {"properties" : {"file" : {"type" : "attachment", "fields" :  
> {"file" : {"index" : "no"}, "title" : {"store" : "yes"}, "keywords" :  
> {"store" : "yes"}, "content\_type" : {"store" : "yes"}, "content\_length" :  
> {"store" : "yes"}}}}}}}'
> 
> This is the error:  
> {  
> "error" :  
> "NoSuchMethodError[org.elasticsearch.index.mapper.core.TypeParsers.parseMultiField(Lorg/elasticsearch/index/mapper/core/AbstractFieldMapper$Builder;Ljava/lang/String;Lorg/elasticsearch/index/mapper/Mapper$TypeParser$ParserContext;Ljava/lang/String;Ljava/lang/Object;)V]",  
> "status" : 500
> 
> }

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1b148aa2-4c8f-450a-9cd4-c513d1587359%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1b148aa2-4c8f-450a-9cd4-c513d1587359%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:28am UTC](https://discuss.elastic.co/t/unable-to-use-multiple-fields-in-mappings/22499/7 "2017-07-06T00:28:20Z")

</div>


