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 Style list, choose the specific layout style you want to use for your date/time parser.

      For more information, see Date/Time Parser Layout Styles.

    8. In the Layout to be added field, enter your date/time layout, based on your chosen Layout Style.

    9. Click Add.

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

    11. Click Save.