I'm trying to get results out of a TermsFacet with the use of scriptField.
What I'm trying to do is to format the date value and truncate the
milliseconds and then get the output from the facet. Can this be done via
an mvel script?
At the end of the day I just used some Java code within the mvel script
Cheers
Luca
On Monday, September 2, 2013 3:54:28 PM UTC+2, Thomas wrote:
Hi,
I'm trying to get results out of a TermsFacet with the use of scriptField.
What I'm trying to do is to format the date value and truncate the
milliseconds and then get the output from the facet. Can this be done via
an mvel script?
new
org.joda.time.DateTime(doc['time'].value).withMillisOfSecond(0).getMillis()
but is there any way with native mvel which will probably be the fastest
way?
Thanks again
On Monday, September 2, 2013 4:54:28 PM UTC+3, Thomas wrote:
Hi,
I'm trying to get results out of a TermsFacet with the use of scriptField.
What I'm trying to do is to format the date value and truncate the
milliseconds and then get the output from the facet. Can this be done via
an mvel script?
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.