/
Can I index dates using the crawler?
This Confluence instance is now read-only, please head over to the Algolia Confluence instance for the same more up-to-date information
Can I index dates using the crawler?
Can I index dates using the crawler?
What are the accepted date formats?
Answer
Yes, the crawler can index dates. The crawler indexes and adds OpenGraph article:published_time
and article:modified_time
to a website's schema in the Collection by default. Once this information is in your index, you can use these as boost rules, filters, or include them in a custom result interface.
You can also index additional date fields on pages by creating a field in the schema and wrapping the date field on your pages in Search.io tags. Please see our documentation for more information.
Examples of acceptable data and time formats are below.
Date
"2020-01-25" - YYYY-MM-DD
DateTime
"2020-01-25T00:00:00+01:00" (RFC 3339 / ISO 8601)
"2020-01-25T01:21:59Z" (ISO 8601)
"2020-01-25 15:04:05" -0700
Weekday, DateTime
"Friday, 02-Oct-20 02:12:11 UTC" (RFC 2822)
"Fri, 02 Oct 2020 20:48:49 +0100" (RFC 822, 1036, 1123, 2822)
Unixtime
1601604731
Not supported:
"25-01-2020" - (DD-MM-YYYY)
"01-25-2020" - (MM/DD/YYYY)
"20200125T000000Z" (ISO 8601)
"2020-01-25T01:21:59" (Missing timezone)
"Fri, 02 Oct 2020 20:48:49" (Missing timezone)
"Friday, 02-Oct-20 02:12:11" (Missing timezone)
Related content
Why do analytics "search" events lag behind actions performed in my search interface?
Why do analytics "search" events lag behind actions performed in my search interface?
Read with this
How to use a search query to optimise category page filter performance
How to use a search query to optimise category page filter performance
Read with this
How to upgrade the search integration (search-widgets or sdk-react)
How to upgrade the search integration (search-widgets or sdk-react)
Read with this
How to display additional fields in search results
How to display additional fields in search results
Read with this
Find the Old Promotions Screen — Legacy Promotions
Find the Old Promotions Screen — Legacy Promotions
Read with this
How to use PosNeg tracking with the Search.io API
How to use PosNeg tracking with the Search.io API
Read with this