Hacker News new | ask | show | jobs
Show HN: AskHadith – A Hadith search engine based on Mongo text search (github.com)
8 points by ananto30 2083 days ago
3 comments

For the other folks in the room, Atlas Search allows you to eliminate the sort code here, introduce autocomplete, and speeds up performance dramatically. Available on the free tier. You can read about it here: https://docs.atlas.mongodb.com/atlas-search/
This is very nice and easy to use, good job. Where are you sourcing these hadeeths from? Is there some sort of public API or you compiled all the hadeeths yourself?

Also have you submitted it yet to r/Islam on Reddit? You might get more positive feedback

Thanks! I have scraped Hadiths from various websites. Please see the comment above for the sources. And saved them in MongoDB hosted in mlab. I haven't shared in r/Islam, thanks for the suggestion. Will do it soon.
Great interface. Can you please share the data source?
I have collected (scraped) most of the Hadiths from - https://sunnah.com/ https://www.searchtruth.com/hadith_books.php http://hadithcollection.com/ And saved them in MongoDB hosted in mlab.
Have you used Sunnah.com API or manually scraped the data?
Manually scraped it. I did in 2017 for learning purpose. I have recently discovered their API. Will go through it soon.
I have worked with their API. Response time is good.
I have to collect all the Hadiths for indexing in search engines. So in either way (scraping or API) I need all Hadiths in my server. I have gone through their API, it's kind of similar.