Feature #5455
openHave a quicksearch across the application
Description
Have a search at the top of the UI where one could search across all records. It would be "live" (autoupdate) and group records together (e.g. something like spotlight in OS X). Also, it would be nice if plugins like Katello could plug into it.
Files
Updated by Josh Baird over 10 years ago
Totally agree. I constantly find myself needing to browse directly to a host property page. Currently a user, has to click Hosts, find the host, click edit, etc. It would be MUCH quicker if the user could simply start searching for the host in a form at the top of the UI.
Updated by Lukas Zapletal over 10 years ago
The problem is, and Amos correct me if I am wrong, that we did not want to go using full text index. Our search capabilities heavily rely on SQL and our database, our search is strictly structured. That means you need to do context aware searches. Searching accros all models would probably kill the application, maybe it is feasible to search through selected models like hosts, operating systems and few others with possibility for plugins to extend.
From a UI perspective, this is of course most comfortable way of searching, I have to admit.
Updated by David Davis over 10 years ago
So I'm aware of the current search code in foreman, scoped_search, and its limitations. That said, I'm still wondering if there's a way to implement this without a huge hit to performance and without too much complexity.
Updated by Josh Baird over 10 years ago
- Related to Feature #3573: Top navigation bar host quick-search added
Updated by Josh Baird over 10 years ago
What about starting with just a 'host quick search' per #3573? I really think this is a necessary feature considering how much time it would save a user.
Updated by Josh Baird over 8 years ago
I still think is very necessary. Anyone else?
Updated by Lukas Zapletal over 8 years ago
I think the proper implementation of this is to introduce a PostgreSQL full text search and add a plugin that will make use of it. This will give you google-like experience.
Updated by Shimon Shtein about 8 years ago
I have created a small plugin that enables foreman to become a search provider for browser's search bar: https://github.com/ShimShtein/foreman-opensearch
Basic usage: in Chrome: type your foreman server's address (localhost) for dev instances, press TAB. The title will change to "Search Foreman". Now type which object are you looking for with a colon at the end (for example "hosts:") and then type your query.
I have an animated gif on the plugin's github page that explains better how to use it.