Create a Child Field in Advanced Mode
- Capella Operational
- how-to
Create a child field with the Couchbase Capella UI’s Advanced Mode to add or remove a specific field’s content from 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 created an index. For more information, see Create a Basic Search Index in Advanced Mode.
-
You have created a type mapping. For more information about how to create a type mapping on an index, see Create a Type Mapping in Advanced Mode.
-
You have logged in to the Couchbase Capella UI.
-
You have started to create or already created an index in Advanced Mode.
Procedure
To add or remove a child field from a Search index with the Capella UI:
-
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 child field.
-
Under Type Mappings, next to an existing type mapping, go to
. -
In the Field field, enter the name of a field in your documents that you want to add or remove from the index.
The field must contain either a single value or an array. If the field contains a JSON object, Create a Child Mapping, instead. -
In the Type list, select the data type for the field:
For more information about the available data types, see Field Data Types.
-
Configure optional settings for the child field.
For more information about the available settings for child fields, see Child Field Options.
-
Click Submit.
-
Click Update Index.
Next Steps
You can continue to create child fields to add or remove the contents of a document from your Search index.
If a field in your documents contains a JSON object, Create a Child Mapping in Advanced Mode, instead.
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.