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?
I have two docs with the following values
doc1 time: 2013-09-01 22:10:15.123
doc2 time: 2013-09-01 22:10:15.456
and i want to have as an output
term: 2013-09-01 22:10:15.000
is it possible to have something like term.setScriptField (
DateFormat.format( doc['time'].value, 'yyyy-MM-dd HH:mm:ss')) )??
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@example.com.
For more options, visit https://groups.google.com/groups/opt_out.