Angelblue05 4130 Posted July 5, 2019 Share Posted July 5, 2019 (edited) @@Luke Using /Search/Hint I've noticed the server is no longer returning item ids. The webclient uses /Items with the param searchterms, should I switch to that? This is what I get now. { "ItemId": 0, "Id": 0, "Name": "Hell's Kitchen", "PrimaryImageTag": "813aef67a559f87391c599f97c45a99d", "BackdropImageTag": "a573af88592976693ffea8116f9e674a", "BackdropImageItemId": "0", "Type": "Series", "IsFolder": true, "RunTimeTicks": 27000000512, "AlbumId": 0, "PrimaryImageAspectRatio": 0.68 }, Edited July 5, 2019 by Angelblue05 Link to comment Share on other sites More sharing options...
ebr 14862 Posted July 5, 2019 Share Posted July 5, 2019 Yes, you need to switch. 4.2 no longer supports that old search end point. 1 Link to comment Share on other sites More sharing options...
Luke 36886 Posted July 5, 2019 Share Posted July 5, 2019 I can fix that but yes I would advise switching. 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 7, 2019 Author Share Posted July 7, 2019 (edited) @@Luke I think the search via Items could be improved if the same behavior as Search/Hint is implemented. For example, in my show library, I have the Borgias with id 169 (pooled). But when I used the webclient search, it returns the Borgias with id 158 (pooled but hidden). The search should return the one that is found in library (169). Edited July 7, 2019 by Angelblue05 Link to comment Share on other sites More sharing options...
Luke 36886 Posted July 7, 2019 Share Posted July 7, 2019 Neither one is actually hidden. The one that comes back depends on filters chosen, and it both meet the criteria then either one could be sent back. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 7, 2019 Author Share Posted July 7, 2019 (edited) With search hint I never had the one that's pooled (not displayed in library) returned. Anyway, no big deal. I just thought I'd mention it. Thanks for your replies. Edited July 7, 2019 by Angelblue05 Link to comment Share on other sites More sharing options...
Luke 36886 Posted July 7, 2019 Share Posted July 7, 2019 Right but there are changes in 4.2 to allow all grouped versions to utilize all features such as filtering. Previously you could only filter against one arbitrary chosen one, now you can filter against all of them. Your filter and sort criteria could end up impacting which ones comes out of the query. 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 9, 2019 Author Share Posted July 9, 2019 (edited) FYI In swagger, the searchterm key does not appear under users/{userid}/items Is it available pre-4.2 as well? Edited July 9, 2019 by Angelblue05 Link to comment Share on other sites More sharing options...
Luke 36886 Posted July 9, 2019 Share Posted July 9, 2019 I'll look at that, but yes, SearchTerm has been around since 4.0+. I believe it was in 3.5 but I'd have to double check. In other words, it's been long enough now that you don't need to bother worrying about using the old way for older servers anymore. 1 Link to comment Share on other sites More sharing options...
Luke 36886 Posted July 9, 2019 Share Posted July 9, 2019 Yes, 3.5+. 1 Link to comment Share on other sites More sharing options...
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