[
https://issues.apache.org/jira/browse/CONNECTORS-657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13592220#comment-13592220
]
Karl Wright commented on CONNECTORS-657:
----------------------------------------
Hi Maciej,
There is no common date attribute name either. What metadata are you
specifically looking at for Solr in that case?
What I recommend is to create a new pair of methods in RepositoryDocument:
getDatestamp() and setDatestamp(). The format should not be Solr, I think, but
rather something generic (such as ms since epoch, which we use everywhere
else). The Solr connector can then convert it to whatever form it wants - same
as ElasticSearch, etc.
I'm confused though as to how you are seeing these metadata attributes at all.
Last updated date usually just gets folded into the version string and is not
typically sent to the output connector at all. Or maybe I am not remembering
properly.
> Normalize date/timestamps format across connectors
> --------------------------------------------------
>
> Key: CONNECTORS-657
> URL: https://issues.apache.org/jira/browse/CONNECTORS-657
> Project: ManifoldCF
> Issue Type: Bug
> Reporter: Maciej Lizewski
>
> several connectors add datetime attributes to RepositoryDocument, but they do
> not have common format. Examples:
> WikiConnector adds last-updated: 2010-10-10T12:34:00Z
> SharedDriveConnector adds last-updated: Thu May 28 17:39:46 CEST 2009
> and so on.
> Solr requires all date/datetime fields to be passed as YYYY-MM-DDTHH:II:SSZ
> We need to standardize formats (my recommendation is solr format) or allow to
> add Date attributes to RepositoryDocument and move formatting to
> OutputConnector.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira