Hotel suggester using autocomplete

Let's take the scenario of a site like Zomato, which helps us to search hotels. As the first step, an autocomplete suggestion needs to be employed. When the user types, the autosuggester should be able to complete or give suggestions for the hotel names the end user tries to type in. The characteristics of this feature are as follows:

  • It should be able to do a prefix match, that is a string such as hot should suggest Hotel Holiday Inn and Hotel Summer Holiday Homes.
  • It should be able to map multiple prefixes, that is for a string sum, it should be able to suggest Hotel Summer Holiday Homes. Also, it should be case insensitive.
  • It doesn't need index/type/ID information. It just needs the suggested text.
  • It should ...

Get Elasticsearch Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.