Create a Child Field

  • how-to
    Create a child field with the Couchbase Server Web Console to add or remove a specific field’s content from a Search index.



    To add or remove a child field from a Search index with the Couchbase Server Web Console:

    1. Go to Search.

    2. Click the index where you want to create a child field.

    3. Click Edit.

    4. Expand Customize Index  Mappings.

    5. Point to an existing mapping and click +.

    6. Click insert child field.

    7. 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. Field names must not contain periods (.).
    8. In the Type list, select the data type for the field.

      For more information about the available data types, see Field Data Types.

    9. Configure optional settings for the child field.

      For more information about the available settings for child fields, see Child Field Options.

    10. Click OK.

    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, 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 Web Console or Run a Simple Search with the REST API and curl/HTTP.