Hi,
I'm utilizing the CWS SearchService.Search() method to execute a search for documents in Java. I followed the C# example and converted it to Java which worked very well. I've been able to add all the attributes (custom or otherwise) to my transformation spec also, however, I noticed that when adding date/time values I seem to only be getting back date information and not timestamps. Specifically, I'm looking to get the creation and modified timestamps in addition to the date.
Specifically when I call node.getD().get(i) of the current SNode in my search results, I get back an instance of an XMLGregorianCalendar however it contains no time information. I double checked with the CWS API reference at https://knowledge.opentext.com/knowledge/cs.dll?func=ll&objId=67792619&objAction=browse&viewType=1 for my version of ContentServer (16.2). The SNode entry shows the getD() method returning a Date object Array as opposed to a list of XMLGregorianCalendar objects which is what I see from intellisense in eclipse using my cws.jar from my install.
I definitely see timestamps in my content server UI and GetNode() and other various services return them properly. I am attempting to get the modified timestamp by adding it to my transformation spec for the XML search. Is this just not supported or have I gone about this the wrong way?