Configurable number of search results to display #5354

Closed
opened 2025-12-29 19:26:59 +01:00 by adam · 6 comments
Owner

Originally created by @bluikko on GitHub (Sep 10, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.0.2

Feature type

Change to existing functionality

Proposed functionality

Currently only 15 search results are displayed and other results are behind a "See all x results" button.

There limit of search results to display could be configurable similar to the way pagination is - I for one would prefer to see many more search results.

Use case

Would make the UX better and make it faster to use NetBox for those users who need it.
Avoids unnecessary clicks and page loads.

Database changes

None?

External dependencies

None.

Originally created by @bluikko on GitHub (Sep 10, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.0.2 ### Feature type Change to existing functionality ### Proposed functionality Currently only 15 search results are displayed and other results are behind a "See all x results" button. There limit of search results to display could be configurable similar to the way pagination is - I for one would prefer to see many more search results. ### Use case Would make the UX better and make it faster to use NetBox for those users who need it. Avoids unnecessary clicks and page loads. ### Database changes None? ### External dependencies None.
adam added the status: acceptedtype: feature labels 2025-12-29 19:26:59 +01:00
adam closed this issue 2025-12-29 19:26:59 +01:00
Author
Owner

@TigerEnteNBG commented on GitHub (Sep 10, 2021):

You can change this at the end of a list.
Check out the bottom right corner of your devices site, where you can change the number up to 1000.

@TigerEnteNBG commented on GitHub (Sep 10, 2021): You can change this at the end of a list. Check out the bottom right corner of your devices site, where you can change the number up to 1000.
Author
Owner

@bluikko commented on GitHub (Sep 10, 2021):

You can change this at the end of a list.

Are you talking about search results?

Yes, there is a control for results per page after one clicks the "See all x results" but this is not what I mean.

I mean a control for the amount of search results to display before the "See all x results" button is displayed.

For example the current value is 15 and if there are more than 15 results for a search, only 15 first results are displayed along with the button "See all x results". The proposal here is to make that 15 configurable so that in search results directly there could be for example 50 results and if there are more than 50 results then a button "See all x results" is displayed.

@bluikko commented on GitHub (Sep 10, 2021): > You can change this at the end of a list. Are you talking about search results? Yes, there is a control for results per page _after_ one clicks the "See all x results" but this is not what I mean. I mean a control for the amount of search results to display _before_ the "See all x results" button is displayed. For example the current value is 15 and if there are more than 15 results for a search, only 15 first results are displayed along with the button "See all x results". The proposal here is to make that 15 configurable so that in search results directly there could be for example 50 results and if there are more than 50 results then a button "See all x results" is displayed.
Author
Owner

@jeremystretch commented on GitHub (Sep 10, 2021):

The limit is 15 results per object type, not total. I don't believe expanding this beyond 15 makes any sense: If you want to see more results, you should be searching for a specific model rather than globally.

@jeremystretch commented on GitHub (Sep 10, 2021): The limit is 15 results _per object type_, not total. I don't believe expanding this beyond 15 makes any sense: If you want to see more results, you should be searching for a specific model rather than globally.
Author
Owner

@bluikko commented on GitHub (Sep 10, 2021):

If you want to see more results, you should be searching for a specific model rather than globally.

I am not following what you say about searching for a specific model - next to the search box there is a drop-down box with option "Device" but it still shows only 15 devices. If you mean going to Devices and then creating a filter then I guess yes it will show more than 15 but that is even more clicks and page loads.
I am only proposing to make it configurable for those who prefer to get the information they need as quickly as possible. I do see why someone would prefer to see a short list only so 15 may be a good default.

@bluikko commented on GitHub (Sep 10, 2021): > If you want to see more results, you should be searching for a specific model rather than globally. I am not following what you say about searching for a specific model - next to the search box there is a drop-down box with option "Device" but it still shows only 15 devices. If you mean going to Devices and then creating a filter then I guess yes it will show more than 15 but that is even more clicks and page loads. I am only proposing to make it configurable for those who prefer to get the information they need as quickly as possible. I do see why someone would prefer to see a short list only so 15 may be a good default.
Author
Owner

@jeremystretch commented on GitHub (Sep 10, 2021):

The global search will by default search for all supported models, returning up to 15 results for each model. So if you search for e.g. "foo" you could see up to 15 sites with "foo" in the name, 15 racks with "foo" in the name, 15 VLANs with "foo" in the name, etc.

If you limit the global search to return only devices, it's true that you will see only 15 results. However, at that point it would make more sense to search via the devices list anyway. IIRC the original intent was to allow users to select multiple model types to search by, but that was difficult to implement from a UX perspective.

I suppose we could tweak the search to return up to a full page of results only when a specific model type is selected. Would that work?

@jeremystretch commented on GitHub (Sep 10, 2021): The global search will by default search for _all_ supported models, returning up to 15 results for each model. So if you search for e.g. "foo" you could see up to 15 sites with "foo" in the name, 15 racks with "foo" in the name, 15 VLANs with "foo" in the name, etc. If you limit the global search to return only devices, it's true that you will see only 15 results. However, at that point it would make more sense to search via the devices list anyway. IIRC the original intent was to allow users to select multiple model types to search by, but that was difficult to implement from a UX perspective. I suppose we could tweak the search to return up to a full page of results only when a specific model type is selected. Would that work?
Author
Owner

@bluikko commented on GitHub (Sep 11, 2021):

I suppose we could tweak the search to return up to a full page of results only when a specific model type is selected. Would that work?

In my opinion this would be absolutely an improvement.

@bluikko commented on GitHub (Sep 11, 2021): > I suppose we could tweak the search to return up to a full page of results only when a specific model type is selected. Would that work? In my opinion this would be absolutely an improvement.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5354