Thanks a lot for the answer.

I'm not totaly agree with you, for me , operation's retrieve should be 
decorrelated from the way that you give the indexed value.
But as you had mentionned, and that was my main confusion, the _source 
contains the JSON provided. I was expecting that the returned value can be 
formated, or correspond to the format configuration gived in the mapping.

That's limit a lot the querying aspect. For me all that matters is the fact 
that you manipulate a Date type, you can put a long or a string formated 
date (in sevral way) value, both has to be indexed in the same way, and 
then when you extract the value, determine the way that the format will be 
in output.

Date is a special case, it's not a "primitive" one,  It has median way to 
store it (long), and I don't think that Elasticsearch manages it as a 
"Type" but only as a special String, or Long Type.

(My hope is not the reference, and certainly I don't understand the main 
keys of Elasticsearch)

To finish , as you advice, I will use only Long formated date (but that 
will be hard and not really proper).

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/2a10cc90-f2d2-4809-a52f-47e98afdc139%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to