Hi Brian, Thanks for your reply, I understand your point but if you check the source code of TimeValue it does not support the quarter and the year so I was wondering what is the class that supports the transformation of the string 1q into millisecods or 1y into millisecods if any
Thanks 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/9666f856-7327-4e97-8185-de603f02aee6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
