Create a Custom Character Filter

  • how-to
March 23, 2025
+ 12
Create a custom character filter with the Couchbase Server Web Console to remove unwanted characters from a Search query or the contents of a Search index.

Prerequisites

Procedure

To create a custom character filter with the Couchbase Server Web Console:

  1. Go to Search.

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

  3. Click Edit.

  4. Expand Customize Index  Custom Filters.

  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 Save.