Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Search Logic

When searching for a restaurant name, sometimes the restaurant name doesn't show at the top. It's due to :

  1. Search results are ordered by the revenues generated to the HH.
  2. The more in demand and the more income the restaurant earns to us, the resto will appear at the top. reference:  https://hungryhubgroup.slack.com/archives/C02P9FS8R51/p1658389421094339

Screen Recording 2565-07-21 at 14.41.22.mov

search logic based on the revenue
coffee club express restaurant has more revenues generated for us, compared to the press sky bar, because it is a new restaurant

search logic on fast API: we use fuzzy logic on there, so basically we search by the keyword and the synonym.

"Fuzzy logic is a technique for representing and manipulating uncertain information. In the more traditional propositional logic, each fact or proposition, such as 'it will rain tomorrow,' must be either true or false. Yet much of the information that people use about the world involves some degree of uncertainty. Like probability theory, fuzzy logic attaches numeric values between 0 and 1 to each proposition in order to represent uncertainty. But whereas probability theory measures how likely the proposition is to be correct, fuzzy logic measures the degree to which the proposition is correct. For example, the proposition 'President Clinton is young' may have a degree of correctness 0.8.

Search BY :

  • Restaurant Name
    • we get restaurant list data from fast api filter first
    • if enable search with menu on setting was on it will filter again by restaurant tag that have name like you search
    • and filter again the restaurant that active and not_expired
  • Service Type (Dine In, Delivery, Experience)
    • we get restaurant list data from restaurant that active and receive offers
    • it filter the restaurant list by (delivery or dine in)
  • Cuisine
    • we get restaurant list data from restaurant that active and receive offers
    • and filter by restaurant tag(cuisine) name like “Buffet”
  • Price
    • we get restaurant list data from restaurant that active and receive offers
    • and filter by package price
    • and filter again by restaurant price summary
  • Location
    • we get restaurant list data from restaurant that active and receive offers
    • and filter by restaurant tag(location) name like “Phuket”
  • Other
    • we get restaurant list data from restaurant that active and receive offers
    • and filter by restaurant tag(facility) name like “Rooftop”