How to implement autocomplete on a massive dataset

前端 未结 7 962
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-29 21:54

I\'m trying to implement something like Google suggest on a website I am building and am curious how to go about doing in on a very large dataset. Sure if you\'ve got 1000 items

7条回答
  •  天命终不由人
    2021-01-29 21:57

    Don't try to implement this yourself (unless you're just curious). Use something like Lucene or Endeca - it will save you time and hair.

提交回复
热议问题