Re: Elastic search range dates

2014-01-03 Thread melasticsearch
Thanks for the reply.
I am pretty sure that the dates are indexed as dates and not as strings,
since the hits are of the type:

_score : 1.375688, _source : {type:[A],time:[Mon Nov 11 13:55:30
CET 2013],name:[peter]}

where the field time has already the format of a date. It seems to
parse/format automatically from ISODate(2013-10-17T09:23:56.131Z) to dates
such as the one in the sample.





--
View this message in context: 
http://elasticsearch-users.115913.n3.nabble.com/Elastic-search-range-dates-tp4046565p4046993.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/1388741251910-4046993.post%40n3.nabble.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Elastic search range dates

2013-12-31 Thread Adrien Grand
Your query looks good. However, the way your hit is formatted in the
results of the second query seems to indicate that your dates are indexed
as strings instead of dates. How did you get your data from mongo to
Elasticsearch?


On Tue, Dec 31, 2013 at 11:42 AM, melasticsearch 
melasticsea...@mailinator.com wrote:

 no one?



 --
 View this message in context:
 http://elasticsearch-users.115913.n3.nabble.com/Elastic-search-range-dates-tp4046565p4046854.html
 Sent from the ElasticSearch Users mailing list archive at Nabble.com.

 --
 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+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/elasticsearch/1388486560274-4046854.post%40n3.nabble.com
 .
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Adrien Grand

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j5s3iiZaDgfvwkbgU9O5vxFJDLHJ_w7kQadcsDvaZfCNA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.