Problem defining a template

I am having a problem defining a template to match up against data I would
like to index. I have removed extraneous fields from the template and
summarized the template and given a sample curl invocation and the error
message I am getting in the following gist:

and the following error when trying to index a test document:

{"error":"MapperParsingException[mapping [date]]; nested:
MapperParsingException[Trying to parse an object but has a different type
[date] for [date]]; ","status":400}

I would very much appreciate very much any pointers as to what I have done
wrong that could be triggering this error. This has been driving me crazy
for several hours now.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

I tried to reproduce your problem, but didnt get an error on indexing (is
it possible that the file you specified using curl -T is still an old
version, I tried your curl call without using -T and it worked with the
data you supplied).

--Alex

On Thu, Sep 26, 2013 at 7:56 PM, Ian Marsman ian.marsman@gmail.com wrote:

I am having a problem defining a template to match up against data I would
like to index. I have removed extraneous fields from the template and
summarized the template and given a sample curl invocation and the error
message I am getting in the following gist:

Problematic template mapping · GitHub

and the following error when trying to index a test document:

{"error":"MapperParsingException[mapping [date]]; nested:
MapperParsingException[Trying to parse an object but has a different type
[date] for [date]]; ","status":400}

I would very much appreciate very much any pointers as to what I have done
wrong that could be triggering this error. This has been driving me crazy
for several hours now.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hello. I am not sure what the problem is, whether it is valid or not, but I
have ended up writing a script that handles document template creation
based on index path and that is working fine. Thanks for looking into it!

On Tuesday, October 1, 2013 12:49:52 AM UTC-7, Alexander Reelsen wrote:

Hey,

I tried to reproduce your problem, but didnt get an error on indexing (is
it possible that the file you specified using curl -T is still an old
version, I tried your curl call without using -T and it worked with the
data you supplied).

--Alex

On Thu, Sep 26, 2013 at 7:56 PM, Ian Marsman <ian.m...@gmail.com<javascript:>

wrote:

I am having a problem defining a template to match up against data I
would like to index. I have removed extraneous fields from the template and
summarized the template and given a sample curl invocation and the error
message I am getting in the following gist:

Problematic template mapping · GitHub

and the following error when trying to index a test document:

{"error":"MapperParsingException[mapping [date]]; nested:
MapperParsingException[Trying to parse an object but has a different type
[date] for [date]]; ","status":400}

I would very much appreciate very much any pointers as to what I have
done wrong that could be triggering this error. This has been driving me
crazy for several hours now.

--
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:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.