Global search

BTW @WithoutPants, if you are looking at Bang’s implementation of a global search, I think we could get something out the door pretty easily. It would essentially be a search button that provides an input field and a drop-down menu, allowing users to select the object type they want to query against. After pressing Enter, the appropriate list page with the search filter loads. This implementation can then be iterated on in the future if we want to provide more smarts down the line. The biggest obstacle I see for the first iteration is the slight redesign that may be necessary to incorporate this on the right side of the navigation bar.


If you are set on keeping this button here, perhaps consider using a more muted color. The button, as it currently is (due to its size), is far too distracting.

Before:


After:

I don’t think a dropdown for types is needed, I quite like the fuzzysearch implemented by stash-omnisearch, it returns all results and prepends the type, or it can be specified and removed with a parser. I use it as a plugin and it’s quite helpful having a global searchbar

The need for targeted search becomes particularly important when considering the scale of different Stash instances. Images specifically are known to scale up very quickly for users downloading galleries. I’m currently sitting at 88 million images. I imagine the performance of anything hitting that table would be lacking, so I would never want to query images. A dropdown that encompasses all object types could be included, but doing so would significantly expand the scope of the work for a first iteration effort. You would no longer be able to lean on the existing content list pages to render query results. We would need to provide something new that can consolidate all types on one page.

Coincidentally I happen to be mucking about building a Raycast extension for StashDB…

SQLite includes a surprisingly robust and performant full text search module. It’d be a good fit for any future global search feature :blush: