Survey: What filters would you like for šŸ” search?

Filters help you narrow down the search results by adding extra criterion. There are currently quite a few already. For example you can already add in:dn to narrow it to only results from the Digha Nikaya. Or in:long to search all collections within Long (i.e. dn da da-ot). Or in:sutta to limit to everything in the Suttapitaka (i.e. all root languages but exclude Abhidhamma and Vinaya).

There are also currently three shortcuts to narrow your search to an age strata:

Narrow search to ā€œEarly Buddhist Textsā€ (in:ebt).

This is a shortcut and not a definitive list of what is early. Equivalent to the following.
dn, da, mn, ma, sn, sa, sa-2, sa-3, an, ea, ea-2, kp, iti, ud, snp, dhp, thig, thag, pli-tv, lzh-mg, lzh-mi, lzh-dg, lzh-sarv, lzh-mu, lzh-ka, lzh-upp, san-mg, san-lo, up, ea-ot, d, sf

Narrow search to ā€œEarly Buddhist Suttasā€ (in:ebs).

This is a shortcut and not a definitive list of what is early. Equivalent to the following.
dn, da, mn, ma, sn, sa, sa-2, sa-3, an, ea, ea-2, kp, iti, ud, snp, dhp, thig, thag, sf

Narrow search to ā€œEarly Buddhist Chinese Textsā€ (in:ebct).

This is a shortcut and not a definitive list of what is early. Equivalent to the following.
da, ma, sa, sa-2, sa-3, ea, ea-2, lzh-mg, lzh-mi, lzh-dg, lzh-sarv, lzh-mu, lzh-ka, lzh-upp, ea-ot, d


There is currently no way to filter by root language. So for example there could be
in:pali: dn, mn, an, sn, kp, ud, iti, snp, vv, pv, thig, thag, ja, tha-ap, thi-ap bv cp mnd cnd ps ne pe mil pli-tv-vi pli-tv-ab

My question for you: What other filter shortcuts would you like?

Some of my ideas are
in first four nikayas
in:ffn : dn mn sn an
In early KN
in:ekn : kp dhp ud iti snp thag thig
In late KN
in:lkn : vv, pv, ja, tha-ap, thi-ap bv cp mnd cnd ps ne pe mil

What ways would you like to be able to narrow down your search results?

P.S.: Hong Da has been working really hard on improving search over the last several months. If you havenā€™t recently, please do more searching!

Discussion on GitHub for those really interested.

12 Likes

Thank you for bringing this up! I would support all your suggestions.

8 Likes

In theravada (not quite the right wordingā€¦ I want xx language but the pali texts only)
in vinaya
are two which I canā€™t see in the list and would be super useful

2 Likes

Would that be something different from in:pali? Do we have Pali texts that are not associated with Theravada? Or will we some day? Iā€™m honestly not sure.

I realize now that my in:pali only listed sutta texts. It needs to extend to all Pali texts.

in:vinaya actually already works. But it includes all Vinaya texts. What doesnā€™t work but should is in:pli-tv-vi Iā€™m not sure why it doesnā€™t.

Ven. @Pasanna I was actually hoping you would offer suggestions on Vinaya searching since I believe you work on it quite a lot. Thanks!

3 Likes

Is something like in:abhidhamma or in:ab possible?

1 Like

in:abhidhamma already works. (At least it should!) As far as I can tell it searches in all Abhidhamma texts in all languages/schools. Itā€™s at the same hierarchy level as in:sutta and in:vinaya.

Bhante Sujato in the past has mentioned not wanting to have duplicates, but I donā€™t know how he would feel about abbreviating Abhidhamma. On the one hand itā€™s long. On the other I donā€™t think there is a universal standard abreviation for Abhidhamma, is there? That would mean users would have to memorize the abbreviation we picked or check it each time.

What doesnā€™t work is the level at in:in:pli-tv-ab. Same problem with Vinaya docs.

1 Like

Ohhh I see, I thought that filter didnā€™t work, so I probably didnā€™t type it in right. Nice to know for when Iā€™m wasting my time searching for obscure things on the abhidhamma :smiley:


My first thought with the filtering from someone who has designed some UIs is that the text filtering could work with a panel of switches like the language filters:

Because it might make it more accessible, reduce typing, and less technical for some? It could also be tiered like

ebt
ā € ebs
ā €ā € DN
ā €ā € MN
ā € ebct
ā €ā € da

then checking ebs could check off its children.

4 Likes

For sure there would be advantages. Perhaps once search is working through the ā€œmanualā€ way, someone could build an interface like that on top of it. The number of texts on SC, for good or for bad, is huge. So then you start running into other issues. The Digital Pali Reader has a check box system for search, but they have way, way less texts to deal with. And now that I look at it again, I see it doesnā€™t allow nearly the precision that the SC search already offers.

Iā€™m hypothesizing that 80% of people spend 80% their time searching among the same group of texts. For example, Iā€™m almost always searching Pali suttas. So although itā€™s kind of a pain to always have to enter a filter, at least I know what it is and I can do it without taking my hand off my mouse.

And this is actually why I made the post; to see how other people are using search.

2 Likes

I did think about how there could be so many texts, so it could be in drop downs. I fleshed this out into some subcategories for a fuller example of how the navigation could feel.

ā¬œ all texts

ebs
ebtc
pali
4 nikayas
shortcuts

ā¬œ vinaya

all analyses
all nunā€™s
shortcuts

ā¬œ Theravāda

monkā€™s analysis
monkā€™s assorted
nunā€™s analysis
nunā€™s

ā¬œ Mahāsaį¹…ghika

monkā€™s analysis
monkā€™s assorted
nunā€™s analysis
nunā€™s

ā¬œ sutta
āŽ D

like in:long
DN
DA
DA-ot

ā¬œ M

MN
MA

ā¬œ S

SN
SA

ā¬œ A

AN
EA
EA-2
EA-ot

ā¬œ K

KN
DHP
Minor Chinese

ā¬œ O

SAN
XCT

ā¬œ abhidhamma
ā¬œ Theravāda

Ds
Vb
Dt
Pp

Since people probably most often use just one filter, hopefully those specific filters would be easy to access from this sort of menu.

3 Likes

I wasnā€™t very clear

What I think I meant was text from the Pali canon in (both sutta and vinaya) in:English

in:pli-tv-vi
in:sutta-tv ā† a made up tag
in:english ā† though if I am searching an English word this is kinda redundant :person_facepalming:

would in:pli-tv-vi be only in pali or would it be the pali texts in the language I search in?

Iā€™m sure I had more vinaya searches, but I canā€™t remember what I was wanting now.

1 Like

Thank you for bringing this up. Iā€™ve had a half finished search UI mockup on my computer for a really long time! It was going to be a thing that @gillian and I just had on our desktops!

3 Likes

This was something that was really hard for me to get my head around for the entire time Iā€™ve been volunteering on the search project.

The languages interface on the search page:

Is where you decide which documents itā€™s going to search in. Not the root language of the texts. The current wording is really confusing to me because it says right there root languages. What Iā€™m proposing it say is Manuscripts.

So if you have Pali and English ticked and you search for cat, itā€™s going to search in all documents in both Pali and English that have that term. That means:

  1. It will return results from English translations of Pali, Classic Chinese, Sanskrit, etc. texts if they have the word cat
  2. If you have partial match turned on, it is going to return a bunch of Pali documents (i.e. the Pali manuscripts themselves) that have the characters cat in them. Lots of them

Does that make sense?

So except for searching for the articles written by Bhante Sujato, there are no in:english texts. in: is exclusively for ancient collections and also groups of ancient collections in the form of shortcuts, like in:ebt

Does that make sense?

So, as odd as it sounds, in:pali is not asking for Pali texts. Its asking for all the collections that are written originally in Pali. I know, it hurts my head thinking about it. If you have Pali ticked on the search settings then including it will be redundant if your search term is Pali.

So once we actually have a working in:pali filter, and once we can use operators with the same filter keyword, you could search for in:vinaya AND in:pali to get all of the Pali/Theravada texts. That would be equivalent to in:pli-tv-vi (which is ugly and doesnā€™t work at the moment.) All of that is why Iā€™m proposing in:pvt for Pali Vinaya Texts.

And you are correct that there is some inherent redundancy in the whole system because if you search for feeling in all the texts on SC (so imagine every box ticked on the settings area) then Iā€™m fairly sure it will only be returning English results.

However, if you try the same thing with cat you are going to get an avalanche of Vietnamese translations because (with diacritics, which are ignored) cat as a very common Vietnamese word. Or if you search vedana you are going to get Sanskrit manuscripts as well as Pali.

We do need a tag for this. Iā€™m proposing in:pst, In Pali Sutta Texts.

Butā€¦ once we get involved with Vinaya and Abhidhamma, then there are many schools that use Sanskrit, so in:sat (In Sanskrit Abhidhamma Texts) is a thing, but is it only thing we need? And I just noticed that there is one school that has both Sanskrit and Classic Chinese root texts.

Thatā€™s kind of the reason I made the thread. :joy:

4 Likes

That language thing really isnā€™t obvious.
I just thought it was the language preferences for the site and never clicked it.

1 Like

Yeah, I have been thinking of that recently. Do you have a suggestion for what icon should be used?

There is a change to the interface on the staging site that will hopefully make it more apparent what is happening:

Iā€™m thinking instead of "Languages searched it should say ā€œDocuments searchedā€. What do you think?

A previous itteration had a Change button where the globe icon is. This unifies it with the rest of the interface, but I agree itā€™s not good to use the same globe for the search.

1 Like

For me, the only way I can keep that language option page clear in my head is if I think of it as a documents option setting. Like, what documents are you going to return to me. Then it is clearer in my mind that if Pali is ticked Iā€™m going to get back a Pali document.

Taking a look at the Material Design icons, I see these that could be used if the ā€œdocumentā€ model is adopted:

imageimageimageimage

There are a few ā€œlanguageā€ icons that mostly look something like this:
image

ETA: Some mockups

2 Likes

I like the document icon with the magnifying glassā€”this makes it very clear these documents will be searched.

5 Likes

I feel like the language button is a form of ā€˜filterā€™ so to have it separated from the other things called ā€˜filterā€™ is a bit weird. What we are talking about is ā€˜advanced searchā€™ and then various subcategories of advanced search. Mixing ā€˜spacingā€™ in with tools which are filters then is a bit confusing.

I do prefer the ā€˜translateā€™ icon, but still think this gives the impression that it is about site settings, rather than filtering the texts searched. This could be because of the following (slight diversion)ā€¦

I think I have a problem in general with the layout of SC :blush:

There is a lot of good stuff hidden on the RHS under the ā€˜viewā€™ icon (for ā€˜normalā€™ pages) and now under the filter and language for search pages, which are easily missed.

I feel like the purpose of the orange bar is a bit mixed. If the breadcrumbs bar is about 'wayfinding" then the document title should be the last item in the breadcrumbs. This would allow all the handy tools to be hanging out on the LHS in their nifty orange tool-belt. (Iā€™m not convinced the eye icon is the best for what we are calling view, but thatā€™s another story).

Apologies that this is a bit of a deviation from your OP question but here is a visual of what I am proposing.

and itā€™s corresponding text page

2 Likes

Yeah, Iā€™ve also thought it was a little strange. Itā€™s really more like ā€œsettingsā€ (which is only one type of setting at the moment) and ā€œdocumentationā€ explaining ways you can modify the search (which is really just filters at this point). They are exclusive from (to?) each other because you canā€™t currently add the parameters in the language check boxes into the search field.

But, I do like having those languages as something that stays selected and then sits in the background. The chances of me, for example, waking up one morning and wanting to include documents translated into something other than English is close to zero. So I donā€™t want to have to add in language:english every time. Itā€™s bad enough that I have to add in:pali.

Well, unlike Google, if we couldnā€™t limit by document language the search would be drastically less useful. So I donā€™t really see that part of the search as advanced.

Now that I think about it, Google is kind of funnyā€¦ Everything you can do with ā€œAdvancedā€ search is available just by typing it into the search bar. When you actually go to what they call ā€œAdvanced searchā€ Itā€™s really just training wheels to give you access to things already available in the ā€œmainā€ search.

What do you think about the page with magnifying lens? I agree with Ven. @sabbamitta that in its own way it closely resembles ā€œdocuments searched inā€

I agree itā€™s not perfect. Iā€™m not happy with the icons being so far to the right that they almost become invisible. Iā€™m especially not keen on the ā€œparallelsā€ label because most of what is under it has nothing to do with parallels.

But all that is worth a new thread.

The problem with the Advanced search drop downs is that itā€™s not as accessible (for the visually impaired). Although it does make those options easier to find.

I think for the sake of this thread, unless itā€™s proposing a very different way that filters should work (or simple things like a better icon), itā€™s best to concentrate on the functionality rather than the UI so much.

I really appreciate your insights Ven. @Pasanna.

1 Like

Although they include the filters in the top bar of the SERP:

And Iā€™m sure this is where the majority of their filter use comes from.

Idk. To me, the more important thing is to be able to search inexact phrases and to have the ranking algorithm work well. If search gets those things right, most people shouldnā€™t have to think about filtersā€¦ and personally Iā€™m pretty happy with the filters we got . Itā€™s not the reason I still use Google to search SC, nor is it a ā€œkiller featureā€ that would get me to switch

1 Like

I believe there is a ui improvement in the works that will add something like this on the results page.

Well, I guess there is the rub. I canā€™t believe that any ranking algo is ever going to know that I absolutely never want results for things other than Pali root texts. And I feel bad for people who want to only work with Chinese root texts.

Iā€™m happy to see concrete suggestions for how to to improve the ranking algorithm. I notice that Iā€™m always getting AN results first, Iā€™m assuming because it comes first alphabetically? Thatā€™s really bad. Maybe we need a discussion thread for ranking, because Iā€™ve seen very little in the way of ideas for that.

1 Like