Create a Custom Character Filter

  • Capella Operational
  • how-to
    +
    Create a custom character filter with the Couchbase Capella UI to remove unwanted characters from a Search query or the contents of a Search index.

    Prerequisites

    • You have the Search Service enabled on a node in your cluster. For more information about how to change Services on your cluster, see Modify a Paid Cluster.

    • You have logged in to the Couchbase Capella UI.

    • You have started to create or already created an index in Advanced Mode.

    Procedure

    To create a custom character filter with the Capella UI in Advanced Mode:

    1. On the Operational Clusters page, select the cluster that has the Search index you want to edit.

    2. Go to Data Tools  Search.

    3. Click the index where you want to create a custom character filter.

    4. Under Advanced Settings, expand Custom Filters.

      Make sure you use Advanced Mode.
    5. Click Add Character Filter.

    6. In the Name field, enter a name for the character filter.

    7. In the Regular Expression field, enter the regular expression for the character filter.

    8. (Optional) In the Replacement field, enter a string that replaces any matches for the regular expression.

    9. Click Submit.