A newer version of this documentation is available.

View Latest

Create a Basic Search Index with the Web Console

  • how-to
    +
    You can create a Search index with the Couchbase Server Web Console.

    You must create a Search index before you can run a search with the Search Service.

    Prerequisites

    • You’ve deployed the Search Service on a node in your database.

    • You have a bucket with scopes and collections in your database.

    • Your user account has the Search Admin role for the bucket where you want to create the index.

    • You’ve logged in to the Couchbase Server Web Console.

    Procedure

    To create a Search index with the Couchbase Server Web Console:

    1. Go to Search.

    2. Click Add Index.

    3. In the Index Name field, enter a name for the index.

      Your index name must start with an alphabetic character (a-z or A-Z). It can only contain alphanumeric characters (a-z, A-Z, or 0-9), hyphens (-), or underscores (_).
    4. In the Bucket list, select the bucket where you want to create the index.

    5. Expand Customize Index.

    6. (Optional) To create the index on a scope other than _default, select Use non-default scope/collection(s).

      1. In the Scope list, select the scope where you want to create the index.

    7. Click Create Index.

    Next Steps

    This basic index includes all documents from the bucket and scope you selected. You can run a search against this index, but it’s recommended that you customize your index to improve performance and reduce the index size.

    For more information about how to customize an index, see Customize a Search Index with the Web Console.