Hi, Thanks again for your time, what I'm trying to do is to be able to generate for example the time in milliseconds in the same way the elasticsearch core does when for example you passes into the date histogram the 1q configuration. I'm trying to simulate in a way the interval of date histogram without using the date histogram, if possible. What is the one liner of code (if you can say that) that does this transformation of 1q into milliseconds and elasticsearch is able to give the intervals of date histogram, because then i compare time intervals with date histogram and I want to be exactly the same.
And please allow me to make one more question, since elasticsearch uses joda start of week is considered always Monday? independently of the timezone? Thanks!! Thomas On Tuesday, 17 June 2014 18:31:37 UTC+3, Thomas wrote: > > Hi, > > I was wondering whether there is a proper Utility class to parse the given > values and get the duration in milliseconds probably for values such as 1m > (which means 1 minute) 1q (which means 1 quarter) etc. > > I have found that elasticsearch utilizes class TimeValue but it only > parses up to week, and values such as WEEK, HOUR are not accepted. So is in > elasticsearch source any utility class that does the job ? (for Histograms, > ranges wherever is needed) > > Thank you > Thomas > > -- 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/bbff2784-c06d-4944-9887-0147e9e31a5e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
