Order global search results by value of matched fields #14035
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
Milestone
NetBox version
v3.6.3
Feature type
Change to existing functionality
Proposed functionality
When returning global search results, order results of equal precedence and object type by value. This should ensure that otherwise equally-relevant results appear in a human-friendly order.
The current ordering for cached search result objects is:
This FR would modify the above to:
(
object_id
is retained as a tie-breaker for results having the same matched value, to ensure deterministic ordering.)Use case
This adjustment serves to ensure otherwise equally-relevant search results are listed in a human-friendly order. (This was first raised as a bug report under #13940.)
Database changes
This will require a model migration to effect the new default ordering for CachedValue.
External dependencies
None
The text was updated successfully, but these errors were encountered: