[Meta] Admin UI Searching
See original GitHub issueThere are a number of suggested improvements / open issues for searching in the Admin UI. This issue to collate & organise them.
- #352 Add support for filtering by relationship fields in the admin UI
- #319 Full-text list filters (aka. “simple search”)
- #2613 Search bar in UI Admin List view doesn’t work
- #2605 Scrolling and Searching for referenced data
- #1654 Knex adapter doesn’t implement the
search
condition - #640 Relationship Select only queries a list’s
name
field - #343 Implement configurable search fields
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
How to search all user meta from users.php in the admin
If you really need to search on many fields then I'd create a '_search_cache' field in usermeta that collects all the other information...
Read more >[meta] Search entities (nodes, terms, etc.) within the ... - Drupal
... being able to search entities within the administrative interface. ... Being able to search content on node title in admin/node/content.
Read more >Tutorial: Meta search - Documentation - Pathomation
Tutorial: Meta search. Meta search ... ""https://host.pathomation.com/pma.core.2/"", username: "admin", password: "admin" }]); var search = new PMA.UI.
Read more >Searching by meta breaks default search on Users page in ...
The topic 'Searching by meta breaks default search on Users page in admin' is closed to new replies. In: Developing with WordPress; 3...
Read more >List all users from UI; list inactive users - feature
Searching for users from the UI, you get a division in categories of ... Use case: a non-technical admin at my company gets...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
😍 love your concept mockup @jesstelford
(to be explicit we’d definitely not want to actually overload the select that much 😅 putting the field pills below the select would work though)
I’d like to propose a first solution here, based on what’s worked in Keystone Classic for years:
(prerequisite opinion: we should never default the search to all text-like fields because in certain schemas this is a serious perf foot-gun; the default should lean to less intensive queries until the author explicitly expands the field set being searched)
The
search
input defaults toname
field if it is defined, and is a Text(-type) fieldid
field as an exact match otherwiseYou can provide a
searchFields
config on theList
which contains one or more paths of Text(-type) fields orfalse
to turn the feature off entirely (this would need support in the Admin UI, and can happen separately)So if I had the following list:
The search would be have similar to what @jesstelford suggested above:
Given case-sensitive and -insensitive queries can have significantly different performance characteristics we could expand the syntax to allow specifying sensitive/insensitive clauses, but I’d treat that as an enhancement.
When the list is constructed, the
searchFields
would be validated against the defined fields and we’d throw an error if any of the field paths provided are invalid or not text type fields.From @timleslie
Taking my idea of “push that to the field itself”, perhaps we could have something like this:
Then in the AdminUI, it would execute something like:
Which would be the equivalent of: