Getting a date from doc.getValues

Submitted by jons911 on Mon, 2011-04-25 19:26.Troubleshooting

Using FreeMarker, how do you get a date from a filed that has multiple values? Dates are part of a subsequent query, but using doc.getValues() I can't seem to be able to get a date field back; only the numeric representation of that date. Any tips?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Submitted by will on Tue, 2011-04-26 09:44.

The doc object is actually the

 net.javacoding.xsearch.search.HitDocument

you can check the java doc for more functions.

You can use

 List<Object> getObjectList(String name)

It would return the actual objects, such as Date, Float, String.