You can see that body_bytes_sent and request_time both have the correct
apparent mapping of int and float. But this other document has everything
as strings:
Now when I try to get the average request time, I get all kinds of problems
(ClassCastException). I thought that mappings were immutable on a type once
they were set. How can I make sure my data always has the correct type?
Strangely, after several hours all documents started storing in the correct
format. I guess this resolved itself, but some documents from yesterday are
still all strings.
On Tuesday, October 8, 2013 9:53:56 AM UTC-4, Matt Hughes wrote:
I created a document type with the following mapping:
You can see that body_bytes_sent and request_time both have the
correct apparent mapping of int and float. But this other document has
everything as strings:
Now when I try to get the average request time, I get all kinds of
problems (ClassCastException). I thought that mappings were immutable on a
type once they were set. How can I make sure my data always has the correct
type?
hmm what you are seeing is the "_source" which is an unprocessed version of
what you send to ES. Even if you send it as a string we index it as a
float. The source will still be a string - we don't process it. Is it
possible that you send it as strings and change over to float?
simon
On Tuesday, October 8, 2013 4:46:37 PM UTC+2, Matt Hughes wrote:
Strangely, after several hours all documents started storing in the
correct format. I guess this resolved itself, but some documents from
yesterday are still all strings.
On Tuesday, October 8, 2013 9:53:56 AM UTC-4, Matt Hughes wrote:
I created a document type with the following mapping:
You can see that body_bytes_sent and request_time both have the
correct apparent mapping of int and float. But this other document has
everything as strings:
Now when I try to get the average request time, I get all kinds of
problems (ClassCastException). I thought that mappings were immutable on a
type once they were set. How can I make sure my data always has the correct
type?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.