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:
-
On the Operational Clusters page, select the cluster that has the Search index you want to edit.
-
Go to
. -
Click the index where you want to create a custom character filter.
-
Under Advanced Settings, expand Custom Filters.
Make sure you use Advanced Mode. -
Click Add Character Filter.
-
In the Name field, enter a name for the character filter.
-
In the Regular Expression field, enter the regular expression for the character filter.
-
(Optional) In the Replacement field, enter a string that replaces any matches for the regular expression.
-
Click Submit.
Next Steps
After you create a custom character filter, you can use it with a custom analyzer.
To continue customizing your Search index, you can also:
To run a search and test the contents of your Search index, see Run A Simple Search with the Capella UI.