Oracle® Secure Enterprise Search Administrator's Guide 11g Release 2 (11.2.2) Part Number E23427-01 |
|
|
PDF · Mobi · ePub |
When specifying a date-time value in an attribute for an RSS feed, use this format:
YYYY-MM-DDThh:mm:sstz[+|-offset]
Where:
YYYY is the year (4 digits).
MM is the month (2 digits).
DD is the day (2 digits).
T is a literal character used as a separator.
hh is the hour (2 digits in 24-hour time designation).
mm is the minute (2 digits).
ss is the second (2 digits).
tz is an RFC822 time zone,Foot 1 or Z to indicate local time.
offset is the difference between the local time zone and Greenwich Mean Time (GMT) in the format hh:mm.
All of these examples are correct:
2002-06-03T16:06:05.00GMT 2002-06-03T16:06:05.00PDT 2002-06-03T16:06:05.00GMT-07:00 2002-06-03T16:06:05.00JST 2002-06-03T16:06:05.00GMT+09:00 2002-06-03T16:06:05.00Z
As shown by these date-time examples, you can specify numeric offsets in the date-time string. Thus, Greenwich Mean Time can be specified as either GMT or GMT+00:00 and Eastern Standard Time can be specified as either EST or GMT-05:00.
Repositories that dispatch data feeds must explicitly specify the content type to avoid the filtering overhead required by Oracle SES to detect the content type. See the <contentLink>
and <content>
elements in the example.
The following example shows a data feed containing three documents.
<?xml version="1.0" encoding="UTF-8"?> <rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <channel> <title>Contacts</title> <link>http://my.company.com/rss</link> <description>The channel contains feed for contacts</description> <lastBuildDate>2006-04-03T12:20:20.00Z</lastBuildDate> <channelDesc xmlns="http://xmlns.oracle.com/orarss"> <feedType>full</feedType> </channelDesc> <item> <link>http://my.company.com/contacts?id=paul</link> <itemDesc xmlns="http://xmlns.oracle.com/orarss" operation="insert"> <documentMetadata> <author>Administrator</author> <accessURL>http://foo.com</accessURL> <lastModifiedDate>2009-12-12T12:22:22.00Z</lastModifiedDate> <keywords>Content Contact</keywords> <summary>This is the summary of the document.</summary> <sourceHierarchy> <path>company</path> <path>department</path> <path>group</path> </sourceHierarchy> <docAttr name="organization">Reports</docAttr> <docAttr name="country">Germany</docAttr> </documentMetadata> <documentAcl> <securityAttr name="EMPLOYEE_ID">0R9NH</securityAttr> </documentAcl> <documentInfo> <status>STATUS_OK_FOR_INDEX</status> </documentInfo> <documentContent> <contentLink contentType="text/html">http://my.company.com/reports.html</contentLink> <content contentType="text/plain">Paul Robinson, A240, Westland Drive</content> </documentContent> </itemDesc> </item> <item> <link>http://my.company.com/contacts?id=tom</link> <itemDesc xmlns="http://xmlns.oracle.com/orarss" operation="delete"/> </item> <item> <link>http://my.company.com/contacts?id=robert</link> <itemDesc xmlns="http://xmlns.oracle.com/orarss" operation="insert"> <documentMetadata> <author>Administrator</author> <accessURL>http://foo.com</accessURL> <lastModifiedDate>2009-12-12T12:22:22.00Z</lastModifiedDate> <keywords>Content Contact </keywords> <summary>This is the summary of the document</summary> <sourceHierarchy> <path>company</path> <path>department</path> <path>group</path> </sourceHierarchy> <docAttr name="organization">Sales</docAttr> <docAttr name="country">China</docAttr> </documentMetadata> <documentAcl> <securityAttr name="EMPLOYEE_ID">I23489</securityAttr> </documentAcl> <documentInfo> <status>STATUS_OK_FOR_INDEX</status> </documentInfo> <documentContent> <contentLink contentType="text/html">http://my.company.com/sales.html</contentLink > <content contentType="text/plain">Robert Mogambo, C318, Lakeside Avenue</content> </documentContent> </itemDesc> </item> </channel> </rss>
Footnote Legend
Footnote 1: RFC822 supports UT and GMT for universal time, and these North American time zones: EST, EDT, CST, CDT, MST, MDT, PST, and PDT.