Which fields are searched by "quick search" #14573
-
It looks like the "quick search" box at the top of the devices page only searches device names. Is that correct behavior and is there some way to configure it? I was hoping to search all visible fields including description, manufacturer, location, etc. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
See https://github.com/netbox-community/netbox/blob/v3.6.7/netbox/dcim/search.py#L37-L46 to see which fields on Device are indexed (this is internal to Netbox and it's not supported to change this, it's just for reference).
However, the manufacturer Cisco should come up in the search results. If you click on it you'll go to Click on the number and you'll get a list of those device types, with in turn a count of the number of instances of each, which you can click on to get the list of devices. |
Beta Was this translation helpful? Give feedback.
-
@candlerb I think you're talking about the search box at the top of the page. I'm talking about the box labeled "quick search". When I'm looking for a device, my instinct is to start at the Sites page, then click the Location (aka room), and then I see the list of devices in that room, I want to quickly find something in there. In this context, I don't think full-text search would be overwhelming, since it's limited to devices only, with the "Location" filter already applied. |
Beta Was this translation helpful? Give feedback.
-
Ah, sorry. With that one, the page contains:
As far as I can tell from browser dev tools, it makes a query to |
Beta Was this translation helpful? Give feedback.
-
Ok, yeah that makes sense, I wouldn't want to slow it down. I've opened #14596 to just add description. |
Beta Was this translation helpful? Give feedback.
Ah, sorry. With that one, the page contains:
As far as I can tell from browser dev tools, it makes a query to
/dcim/devices/?q=XXX
, so you can look in the filtersets to see what that matches.