Dictionary search like Jisho.org
As the title states I'm trying to achieve something similar to https://jisho.org for searching Japanese characters / expressions (as a learning project). Their search allows you to input anything (see https://jisho.org/docs) and then returns data from multiple sources (characters, names, expressions, sentences) in less than a second.
I've got my data ready but I'm not really sure how to proceed now, SQL seems to not be what I need here but I don't really have experience with anything else. How would you guys tackle this ?
5 Replies
this seems like the perfect use case for a document store
i used mongo for https://vocab.c-ehrlich.dev/ (not very fast because it's using prisma on lambda and needs to do a bunch of sorting/ranking that i haven't optimized at all)
Vocab Learn Order
Determine what order to learn Japanese words in
the retrieval itself is super fast
That's interesting (very cool website btw) I didn't think about mongo for this use case but it's a good idea, thanks I'll try it out
Maybe it will be easier since I won't have to deal with relations between words and their kanjis
im 99% sure jisho doesn't do joins or anything like that when you look up a kanji
the word list for each kanji is hardcoded, that's why they're so random a lot of the time