hackathon - search/notebook: basic notebooks query
Created by: bobheadxi
This is a hackathon project, and is not being merged into
main
! See https://sourcegraph.com/notebooks/Tm90ZWJvb2s6NTE5
Implements a basic end-to-end query that searches the full "notebook name" (namespace + title) with a simple ILIKE
query. The query emulates how normal search works by replacing spaces with wildcards so you can be pretty loose with your query.
Sharing code with enterprise/.../notebooks
: we could possibly refactor this so that it lives in the same store as other notebooks stuff, but register it as the handler for the notebook search job from an init function. That said it makes sense, perhaps, to have the DB queries live here so that we can specialize it for search. It would be nice to share the permissions filter at least, however - not sure where this would live.
Stacked on https://github.com/sourcegraph/sourcegraph/pull/33161