kbeck 81 Posted March 17, 2025 Posted March 17, 2025 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 9840 Posted March 17, 2025 Posted March 17, 2025 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 Luke 43757 Posted March 17, 2025 Solution Posted March 17, 2025 Hi, they are ranked by relevance to the search criteria.
Teredactle 47 Posted November 19 Posted November 19 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?
Luke 43757 Posted November 19 Posted November 19 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 47 Posted November 22 Posted November 22 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?
Luke 43757 Posted November 22 Posted November 22 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now