Feature requests: Prioritize own notebooks in search, limit results by user

I frequently need to restrict searches to my own notebooks, but have no way of doing so. Simply adding “mootari” won’t suffice, as it will also include notebooks where I get cited or my notebooks get imported. The weight (order) of the results also adds no noticable preference to my own notebooks.

Suggested solutions:

  1. Boost current user’s notebooks: Always list the current user’s notebooks first before any other notebooks. That way a user either knows when to stop looking through results, or can quickly scroll past their own notebooks.
  2. Special treatment of “@”: It’s my understanding that most non-alphanum characters, including “@”, don’t get indexed. I’d suggest allowing the “@” prefix to limit searches to a specific user. Additionally, if given multiple user names, an OR combination of these conditions might be sensible, as a notebook cannot be owned by multiple users.

Note: “Search by user” was initially requested by @bumbeishvili in Feature request again - advanced notebook search - #15 by adrianpearl, among lots of other features.

5 Likes

I agree. I find myself wanting to search my own notebooks on an almost daily basis and would love to see this become a high priority.

My standard workaround for searching my published notebooks is to use Google site search. For example, to remind myself how I’ve used Object.assign in the past, I might enter the following search:
“Object.assign” site:https://observablehq.com/@mcmcclur

This works surprisingly well but, again, it can only work for published notebooks and it’s hardly ideal.

I too would want better search, with faceting on dates, topics, authors and so on. But I’m often using @fil something and it already works quite well, giving me my notebooks plus the occasional notebook that contains @fil in text or code. Not 100% “my notebooks” but close enough.

As mentioned in my initial post, the “@” gets dropped. Wether you type “@fil” or “fil” makes no difference. :slight_smile:

And, as described above, this solution doesn’t work for me because it also includes imports and mentions.

ok, thanks for the clarification :slight_smile:

Seems like folks were listening to at least #2 here: