🏠 back to Observable

Feature request again - advanced notebook search


#1

This request is inspired by the blockbuilder’s search capabilities

As notebook’s count grows, it’s harder to find the notebook you want to find only with by the title
Advanced search page would be very helpful for many of us

Personally, I think the notebook’s search should include:

  • Search by free text (sorted by priority text titles => text bodies => code cells)
  • Search by used dependency and their versions in cells
    (I don’t know if it’s possible, but would be really great if we could search by d3.zoom for example, when the whole d3 bundle is required into a notebook, and the result appears only when d3.zoom is actually used in code cell )
  • Search by users
  • Time ranges - time interval when the notebook published
  • Liking ranges - Just to explore most loved notebooks (This can be sort option )
  • Collection tags - To explore only specific collections
  • Option, whether include forks or not (We also can sort by it, so firstly comes original, then the forks …)

Again, thanks for creating the ObservableHQ :sunny:


#2

I second this. Recently published and search pull in so many useless forks without any changes it’s getting hard to find useful notebooks to view and learn from.


#3

Hmm, I haven’t thought about that, will be useful as well - added as a last item


#4

I would even suggest that original notebooks should be shown first in the search results, i.e. order by !fork if forks are included


#5

Agree, updated the post again


#6

one last side note I’d add to sort by fork: order forks by original author first since I’ve seen mike doing a series of same type graphs with slightly different renditions and I plan to fork some of my proto maps too for slight data and or viz change display just to keep them linked.


#7

Thanks for the feedback—there are a lot of good ideas in this thread, and we need to do a better job of search and notebook discovery more generally. At the least, we should add pagination to search results so that we can display more than 30 notebooks.


#8

:slight_smile: just virtual scroll them by a set of 30 :slight_smile: should be a quick fix

Please don’t add more ‘Show more…’ buttons or pagination like we have on personal notebooks and likes lists. that’s so old skool.


#9

ironically, I posted this on twitter on Monday:

sounds like our magic number is 30. I did not know observablehq search results limit was 30 till @mike mentioned it in this thread.

k I am done pilling up on you guys. Let me know if you need a hand to scrub, QA, or refine those bits.

I love what you’ve done with beta.observablehq.com so far. nbviewer and kaggle better watch out! :slight_smile:

:hugs:


#10

Nothing whiz-bang, but just dropping by to note that we’ve rolled out a few search improvements:

  • Searches now take author name & login into account
  • Notebooks favorites are ranked higher, notebooks that are simple forks are ranked a little lower. Trivial-forks (forks that don’t have any changes from the forked document) are going to be excluded from search results.
  • Search pagination is now available for seeing >30 results.

#11

Strangely, I can’t see any of that on ObsrvableHQ, are they live already?


#12

good set of first round search changes. much appreciated! thanks @tom

slight quirk with that algo: can you order by title first, then body search and likes?

As much as I like flat arrays, I think @mike’s notebook should be lower in this search result list: