Just wanted to point out a variation of this idea. The number of parallels is the most common measure of importance of a topic that Iâve seen people genuinely try to use. e.g. more mentions of jhÄna means theyâre more important/reliable.
The number of repeat results can be used instead of parallels if that is too hard to measure. Itâs not easy to say whether repeat results are referencing each other or if itâs just a common phrase, and some results are very similar with small differences (even punctuation, which could be ignored if search contains no punctuation or through some setting), but it would still give results that are easier to read this way, are less cluttered, and can be gone through by uniqueness. Itâs then ordered by highest number of repeats since that could mean more important.
Personally, that would make searching a lot easier for me. One other reason is that Iâm often looking for a term which was a part of longer phrase and it may be hundreds of results down which are full of repeats and I have to memorize which ones Iâve seen so far.
So when I search punabbhavo, I get 168 results. Scrolling through it, thereâs many repeat results, but this way it would be organized like:
-
[15 repeats] AN 3.103, AN 3.104, AN 7.50, MN 26, Kd 1, Ps 2.6, SN 14.31, ⊠SN 56.11
âakuppÄ me vimutti, ayamantimÄ jÄti, natthi dÄni punabbhavoââti.
-
[3 repeats] AN 4.1, DN 16, Kv 1.5
Tayidaáč, bhikkhave, ariyaáč sÄ«laáč anubuddhaáč ⊠ucchinnÄ bhavataáčhÄ, khÄ«áčÄ bhavanetti, natthi dÄni punabbhavo
-
[3 repeats] AN 8.64, AN 9.41, MN 128
akuppÄ me cetovimutti, ayamantimÄ jÄti, natthi dÄni punabbhavo
-
[2 repeats] MN 98, Snp 3.9
santo khÄ«áčapunabbhavo
âŠ
Singlets:
Snp 3.6
VusitavÄ khÄ«áčapunabbhavo sa bhikkhu
Bv 2
Dukkho punabbhavo nÄma
âŠ
I omit some content (the title, name of sutta, root language, whether aligned, language, original text, exact reference path), but that could still be included (not sure how important they really are, though, since if you wish to know about those details as they pertain to searching, then you could just search by them). Of course, it also ignores the context, but so does the current search, and one can still click on the sutta reference, linking to that same line.
The original results can just be mutated into a different data layout, so the original search process isnât changed, which should be a relatively easy change. Also split by reference since some results contain multiple when the term appears on multiple lines. The display can get a little technically weird with title:
or when multiple languages are listed, but I donât think that presents a big challenge as it would still just list out those results separately as described.