Jump to content

Bug Search/Hint


Angelblue05

Recommended Posts

Angelblue05

@@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 by Angelblue05
Link to comment
Share on other sites

Yes, you need to switch.  4.2 no longer supports that old search end point.

  • Like 1
Link to comment
Share on other sites

Angelblue05

@@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 by Angelblue05
Link to comment
Share on other sites

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

Angelblue05

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 by Angelblue05
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

Angelblue05

FYI

 

In swagger, the searchterm key does not appear under users/{userid}/items

 

Is it available pre-4.2 as well?

Edited by Angelblue05
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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...