8 ms·
Show HN: Simple Bhagavad Gita Search Web App
- eggy 9y agoIs there a way to click on the results to bring up the surrounding text?
- cvaidya86 9y agoAh you mean jumping to the place in the Gita? Or show the sequential quotes below and above?
- eggy 9y agoYes to both, if possible. I read the Gita first when given a free copy by the ISKC (Hare Krishnas) in Brooklyn back in 1978. Then I read all sorts of texts after taking a comparative religion class in high school. I'd love to have this to study it better.
- cvaidya1986 9y agoadded!
- cbcoutinho 9y agoTyping two words results in the second word being matched with non-contiguous letters. For instance, 'Krishna and' will match with ^Krishna) ^am the source of the origi^n as well as the ^dissolution of the entire universe. (7.06) Not sure if this was intended
- cvaidya86 9y agoYea point taken! Will improve search!
- cvaidya1986 9y agoSearch is improved!
- cvaidya86 9y agoI'm planning to add share buttons for twitter and FB. Let me kno if you'd like other features or a mobile app?
- wavefunction 9y agoAbility to annotate? That's obviously a lot of work though. It could provide context or scholarly opinion/analysis. Maybe "navigation" buttons so if you find a passage you can click next or previous to see the preceding or subsequent passages.
- cvaidya1986 9y agoHmm annotation is interesting. It could possibly also clutter the user experience. Possibly sharing could enable people to discuss it within their own social networks? I definitely heard a lot about clicking through prev and next passages especially on search result quotes. Thanks for the feedback!
- cvaidya86 9y agoAdded navigation!
- atdt 9y agoNice work. It would be nice if the citation were logically and visually separated from the body of each verse.
- cvaidya86 9y agoLike verse then Chapter name and verse number at the bottom right?
- whistlerbrk 9y agoHey this is excellent! I just finished a survey philosophy course which started off with the Gita and continually returned to it, I was super disappointed when I found most online editions plastered with ads and barely readable (by modern standards). I agree with the other commenter, I expected clicking on a verse would jump me that position in the whole body of text, but I'm sure this is just your starting point. Well done OP
- cvaidya1986 9y agoSo thankful! The whole body of text as in you can see below and above quotes or how do you envision the UI when you click on the quote? Would you also like this for other types of philosophy too? Shiva Sutras? Buddha? Zen?
- whistlerbrk 9y agoShantideva, and commentaries on his work. Yes, anything would be great.
- carlsborg 9y agoThats fast. Can you comment on the architecture?
- kthakore2 9y agoLooking at the source. All the text is loaded with the HTML (in a <script> tag), which is filtered using a fuzzy search implementation. Very simple and fast considering the text doesn't change ;)
- cvaidya1986 9y agoKeep it simple :-)
- akgoel 9y agoLess than 1000 verses. You could naively linearly search the whole Gita as a single string.
- deleted 9y ago[deleted]
- the_common_man 9y agoDoes this only search the English translation? I tried the famous 'yada yada hi dharmasya' but it was showing some random results.
- cvaidya1986 9y agoAh yes only English translation for now. Ok I will add it!
- schoen 9y agoI feel like the transliteration issues may be pretty complex! Someone using the site might choose to search for any of यदा यदा हि धर्मस्य (in Unicode) yadā-yadā hi dharmasya yadā yadā hi dharmasya yadaa yadaa hi dhamasya yada yada hi dharmasya If you want to allow search using transliteration, there are a number of interesting algorithmic and non-algorithmic questions about the range of different transliteration mechanisms that people may use. Also, for a reason that I don't quite understand, people transliterating Sanskrit can be very inconsistent about where they do and don't transcribe spaces. Are the spaces perhaps not present in the original? For example ग्लानिर्भवति might be transcribed as "glānir bhavati" or "glānirbhavati", which may also be treated differently for search purposes. (I don't actually know any Sanskrit; I'm just interested in linguistics and writing systems.)
- maxxxxx 9y agoWhen I type "entitled" I get matches for "entities", "There", "Divine" and lot of others. Does it search for every single letter of the search term? That doesn't seem very useful.
- cvaidya1986 9y agoIt's a basic fuzzy search, are you looking for a more cognitive search where it tries to find the meaning of entitled and returns a response?
- maxxxxx 9y agoI am looking for matches that contain the word "entitled". Nothing else. This search seems way too fuzzy.
- cvaidya1986 9y agoSo if the word does not exist in the verses, it should show up zero matches instead of something close?
- maxxxxx 9y agoIn what way is "there" even close to "entitled"? Yes, the default should be not to show verses that don't contain the search word. At least to me the current implementation is not useful.
- gordon_freeman 9y agoSimilar to this: when I type "Bhima" it also gets me "Bhisma". That means it does not recognize the structure of a word.
- cvaidya86 9y agoHmm you're right. I will definitely look into improving the search.
- ramsundhar20 9y agoCan I help implement a full text search?
- cvaidya1986 9y agoWhat I like about fuzzy search is that if I search something like 'Constant Remembrance' which is a spiritual concept but it doesn't exist in those exact words in the Gita, fuzzy search comes up with a quote quite close to the concept simply because it is fuzzy. How would full text search work? Would it come up with zero results if the search was not precise?
- bill_rr 9y agoExactly. That's how it should work. I searched "love" and got passages "Lord Krishna [...] grieve" which the search included because of LO (from LOrd) and VE (from grieVE) - no mention at all of "love," so not what I was looking for. Just go with standard search.
- cvaidya86 9y agoPoint taken!
- ramsundhar20 9y agoCan I help implement a full text search?
- magnetomax 9y agoHey! Excellent Work! Just found a typo in following sentence: "I am the wind among the purifiers and Lord Rama among the warriors. I am the crocodile among the fishes and the holy Gariga among the rivers. (10.31)" I think it should be Ganga. :)
- cvaidya86 9y agoOf course you're right! I shall correct it when I get a chance! Any more suggestions welcome!
- cvaidya1986 9y agoFixed!
- cvaidya1986 9y agoAdded click and jump into specific section and go forward and backward in that new place directly from search results.Also added chapter names!