Jump to content

Search Bar Sort Order


Go to solution Solved by Luke,

Recommended Posts

Posted

Can someone tell me what order (if any) the results of the Search are?

Search from Home and I get the results I would expect but not in Alphabetical order, not in Year order. Looks mostly random to me. Thx.

Happy2Play
Posted

You can see in the log the query.  But will be by SortName.

Quote

/Items?Fields=BasicSyncInfo,CanDelete,CanDownload,PrimaryImageAspectRatio,ProductionYear,Status,EndDate&StartIndex=0&SortBy=SortName&SortOrder=Ascending&EnableImageTypes=Primary,Backdrop,Thumb&ImageTypeLimit=1&Recursive=true&SearchTerm=top&GroupProgramsBySeries=true&Limit=50

 

  • Solution
Posted

Hi, they are ranked by relevance to the search criteria.

  • 1 year later...
Teredactle
Posted
On 3/17/2025 at 12:39 PM, Happy2Play said:

You can see in the log the query.  But will be by SortName.

/Items?Fields=BasicSyncInfo,CanDelete,CanDownload,PrimaryImageAspectRatio,ProductionYear,Status,EndDate&StartIndex=0&SortBy=SortName&SortOrder=Ascending&EnableImageTypes=Primary,Backdrop,Thumb&ImageTypeLimit=1&Recursive=true&SearchTerm=top&GroupProgramsBySeries=true&Limit=50

Is there a place we can change this default for the search sort order?

Posted
3 minutes ago, Teredactle said:

Is there a place we can change this default for the search sort order?

HI, that's only a secondary sort order. The primary sort order is search ranking. what are you trying to do?

Teredactle
Posted
On 11/19/2026 at 2:46 PM, Luke said:

HI, that's only a secondary sort order. The primary sort order is search ranking. what are you trying to do?

I want to understand what is meant by sort ranking. If I have 4 files with the name gymnastics in them, what is the ranking? They have the same rank so then it sorts ascending by name? How do we control this 2nd sort order? Maybe I want it descending when I filter my photos, as all my photos are edited and prefixed yyyymmdd

Can I change any sort order for search returns?

Posted
1 hour ago, Teredactle said:

I want to understand what is meant by sort ranking. If I have 4 files with the name gymnastics in them, what is the ranking? They have the same rank so then it sorts ascending by name? How do we control this 2nd sort order? Maybe I want it descending when I filter my photos, as all my photos are edited and prefixed yyyymmdd

Can I change any sort order for search returns?

Currently four fields go into the search index - title, original title, and then series and artist title (if applicable). Search ranking is the search match score that is assigned by the database full text search.  If you were to simply ignore that and sort everything by name, then in many cases you would see a lot of matches that don't make sense to you. Additionally the search ranking takes into account where in the title the match takes place, and also gives more weight to the title field than the other fields in the search index. These things are all there to help you find the closest match to what you're looking for.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...