Hacker News new | ask | show | jobs
by onemiketwelve 2153 days ago
What do you mean by 0? Are you saying including the script breaks the front end? If so, could you just create a proxy for it on the server and expose an API?

About fuzzy search, do you feel ok about the performance? I had a general feeling that for that type of stuff you need a dedicated search thingy, maybe elastic search?

1 comments

I mean that if you visit [0] to see the translated version through google, JS throws errors: the sidebar won't render, search won't work and pretty much everything which needs JS doesn't respond. Using the in-place translate doesn't have that issue.

About the search part, imagine that in busy days we'll have at most 2-3K active deals, therefore Postgres can do the job really fine with that amount of data. Elastic search was in the table but I think it would be overkill for my use case. Also by having 100% indexable queries performance impact is small. PG provides a lot of goodies to get the job done.

You can try to play with it, just type an english word in the search bar eg "game" and then "geme"

[0] https://translate.google.com/translate?sl=el&tl=en&u=https%3...

[1] https://github.com/wolfgarbe/SymSpell