Unable to use Multiple fields in mappings

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' -d '{"mappings" :
{"docs" : {"properties" : {"file" : {"type" : "attachment"} } } } }'

I've tried this:
curl -XPUT '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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7f7dbcf6-2ce5-478f-9bb0-0a890fd6c765%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

In this example:
curl -XPUT '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/

David

Le 3 mars 2015 à 22:37, Austin Harmon 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' -d '{"mappings" : {"docs" : {"properties" : {"file" : {"type" : "attachment"} } } } }'

I've tried this:
curl -XPUT '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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7f7dbcf6-2ce5-478f-9bb0-0a890fd6c765%40googlegroups.com.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/AEF3F0EE-A56A-42B5-AC6C-D60245C80C7B%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

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' -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/

David

Le 3 mars 2015 à 22:37, Austin Harmon <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' -d '{"mappings"
: {"docs" : {"properties" : {"file" : {"type" : "attachment"} } } } }'

I've tried this:
curl -XPUT '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 <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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/89f64842-521a-4588-a72e-68a99cbd9052%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

David

Le 3 mars 2015 à 23:31, Austin Harmon 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' -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/

David

Le 3 mars 2015 à 22:37, Austin Harmon 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' -d '{"mappings" : {"docs" : {"properties" : {"file" : {"type" : "attachment"} } } } }'

I've tried this:
curl -XPUT '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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7f7dbcf6-2ce5-478f-9bb0-0a890fd6c765%40googlegroups.com.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/89f64842-521a-4588-a72e-68a99cbd9052%40googlegroups.com.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/64A55A73-8E65-4DCA-8651-39BA08800C43%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Here is the mapping I'm trying to make work:
curl -XPUT '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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/20e7f48d-00bf-467c-9a2a-cd02a45bf423%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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' -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' -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' -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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1b148aa2-4c8f-450a-9cd4-c513d1587359%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.