Algorithm for autocomplete?

后端 未结 9 1274
暖寄归人
暖寄归人 2020-11-28 00:45

I am referring to the algorithm that is used to give query suggestions when a user types a search term in Google.

I am mainly interested in: 1. Most important resul

9条回答
  •  没有蜡笔的小新
    2020-11-28 01:17

    Take a look at Firefox's Awesome bar algorithm

    Google suggest is useful, because it take the millions of popular queries + your past related queries into account.

    It doesn't have a good completion algorithm / UI though:

    1. Doesn't do substrings
    2. Seems like a relatively simple word-boundary prefix algorithm.
      For example: Try tomcat tut --> correctly suggest "tomcat tutorial". Now try tomcat rial --> no suggestions )-:
    3. Doesn't support "did you mean?" - as in google search results.

提交回复
热议问题