A newer version of this documentation is available.

View Latest

Create a Custom Date/Time Parser

  • how-to
    +
    Create a custom date/time parser with the Couchbase Server Web Console to tell the Search Service how to process a new date/time format.

    If you store date data in a format other than RFC-3339 (ISO-8601), then you need to create a date/time parser.

    Prerequisites

    Procedure

    To create a custom date/time parser with the Couchbase Server Web Console:

    1. Go to Search.

    2. Click the Search index where you want to create a custom date/time parser.

    3. Click Edit.

    4. Expand Customize Index  Date/Time Parsers.

    5. Click Add Date/Time Parser

    6. In the Name field, enter a name for the date/time parser.

    7. In the Layout to be added field, enter a date/time layout with Go syntax.

      For more information, see the documentation about the Go Programming Language Time Package’s Layout Constant.

    8. Click Add.

    9. (Optional) To add an additional layout, repeat the previous steps.

    10. Click Save.