Create a Custom Wordlist
- how-to
Create a custom wordlist with the Couchbase Server Web Console to use with a custom token filter.
A custom wordlist gives greater control over the input you want to remove from tokenizer results.
For more information about how to create a custom token filter, see Create a Custom Token Filter.
Prerequisites
-
You have the Search Service enabled on a node in your database. For more information about how to deploy a new node and Services on your database, see Manage Nodes and Clusters.
-
You have created an index. For more information, see Create a Basic Search Index with the Web Console.
-
You have logged in to the Couchbase Server Web Console.
Procedure
To create a custom wordlist with the Couchbase Server Web Console:
-
Go to Search.
-
Click the Search index where you want to create a custom wordlist.
-
Click Edit.
-
Expand
. -
Click Add Wordlist.
-
In the Name field, enter a name for the wordlist.
-
In the Word to be added field, enter a word you want to add to the wordlist.
-
To add the word to the list, do one of the following:
-
Click Add.
-
Press Enter.
-
-
(Optional) To add more words to the wordlist, repeat the previous steps.
-
Click Save.
Next Steps
After you create a custom wordlist, you can use it with a custom token filter.
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 Web Console or Run a Simple Search with the REST API and curl/HTTP.