feedback icon indicating copy to clipboard operation
feedback copied to clipboard

Add a collection filter to the search

Open mootari opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe.

Ported from https://observablehq.com/@observablehq/searching-on-observable#comment-1dc4c802bd9a5f7a. See thread for additional context.

The search is missing a filter for collections. At a minimum the filter should take a collection name. If possible there should also be a filter to find or exclude notebooks that have not been assigned to any collection.

Use cases:

  • Search through notebooks in a collection, sorting the results by the various criteria available in the search (but absent from collections)
  • Review notebooks that have not yet been assigned to a particular collection.
  • Treat collections as a tagging system for notebooks, search and filter by various "tags" (inclusive and exclusive).

mootari avatar Feb 08 '22 21:02 mootari

I am just relooking at this and realized that @triptych's request in #369 was a bit different from this request. @mootari I think you are asking to be able to search for notebooks in a particular collection (or in no collection). Whereas the other request was to show collections in the search results. I think we should re-open #369 and keep them separate?

CobusT avatar Aug 25 '22 17:08 CobusT

@CobusT I agree. It might also help to summarize this distinction in the other issue.

mootari avatar Aug 25 '22 18:08 mootari

We now have collection:some-collection as a search parameter! See https://observablehq.com/@observablehq/searching-on-observable#cell-226

CobusT avatar Feb 02 '23 19:02 CobusT

can we search for 1 or more hash tags?

hellonearthis avatar Feb 02 '23 19:02 hellonearthis

tag search will be available soon!

CobusT avatar Feb 02 '23 20:02 CobusT