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
cje
cje2y ago
this seems like the perfect use case for a document store
cje
cje2y ago
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
cje
cje2y ago
the retrieval itself is super fast
mass
massOP2y ago
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
cje
cje2y ago
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
Want results from more Discord servers?
Add your server