Use Autocomplete with the Search Service

  • Capella Operational
  • concept
    +
    Add autocomplete to your application to provide a search engine-like experience for your database.

    Also known as auto suggest or type-ahead, autocomplete guesses potential matches for a user’s search input as they type.

    Autocomplete can provide a better user experience with search in your application.

    Set Up Autocomplete

    To use autocomplete with the Search Service and your Couchbase Capella database:

    1. Create a compatible Search index. You can create the index with the UI or import a JSON payload.

    2. Configure your application to return autocomplete search results from the Search Service. For example code that you can use with your application, see Add Autocomplete to Your Application.

    You can use the travel-sample dataset to test and configure autocomplete, or use your own data.