Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetSearchHintsAsync seems to ignore the IncludeItemTypes array in SearchQuery #3229

Closed
tanathos opened this issue Apr 7, 2018 · 1 comment

Comments

@tanathos
Copy link

tanathos commented Apr 7, 2018

As for the title: I'm building a search query via the C# client that looks like this:

SearchQuery searchQuery = new SearchQuery();
searchQuery.UserId = client.CurrentUserId;
searchQuery.IncludeArtists = false;
searchQuery.IncludeGenres = false;
searchQuery.IncludePeople = false;
searchQuery.IncludeStudios = false;
searchQuery.IncludeMedia = true;
searchQuery.SearchTerm = "Iron";
searchQuery.IncludeItemTypes = new string[] { "MusicAlbum" };
searchQuery.Limit = 24;

var res = await client.GetSearchHintsAsync(searchQuery);

But in the SearchHints results I don't only have music albums with the search term "Iron", but also songs.

I'm trying different configurations of the query, also with the ExcludeItemTypes, but I always get items of all types...

@LukePulverenti
Copy link
Member

Hi, since you've opened a topic in the ApiClient repo, we'll continue the discussion there:
MediaBrowser/Emby.ApiClient#41

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants