TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Redis on steroids: Autocomplete using Redis, Nginx and Lua

64 pointsby alagualmost 11 years ago

5 comments

cliveowenalmost 11 years ago
This implementation is too naive. You can't just autocomplete queries, you have to accept typos and errors and suggest the correct query. That's the hard part.
taf2almost 11 years ago
This is great need to figure out a good way to do request verification maybe to ensure the request it properly signed.<p>Update: this looks like a good article describing a verification scheme <a href="http://www.stavros.io/posts/writing-an-nginx-authentication-module-in-lua/" rel="nofollow">http:&#x2F;&#x2F;www.stavros.io&#x2F;posts&#x2F;writing-an-nginx-authentication-...</a>
leorockyalmost 11 years ago
The usual implementation for autocomplete is to generate a trie data structure. A naive implementation will not have auto-correction or fix problems more established implementations have already addressed.
评论 #7869289 未加载
评论 #7869323 未加载
bithive123almost 11 years ago
I love Redis, nginx, and Lua and wrote my own autocomplete implementation using Metaphone (e.g. <a href="https://github.com/threedaymonk/text" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;threedaymonk&#x2F;text</a>) but after a while it became clear that what I really wanted was an instance of Solr.
muxxaalmost 11 years ago
I wonder if replacing nginx+lua with <a href="http://webd.is/" rel="nofollow">http:&#x2F;&#x2F;webd.is&#x2F;</a> would be faster (and maybe easier to deploy)?
评论 #7869131 未加载
评论 #7869327 未加载