diff --git a/Jellyfin.Api/Controllers/SearchController.cs b/Jellyfin.Api/Controllers/SearchController.cs
index b6178e121d..411c19a59b 100644
--- a/Jellyfin.Api/Controllers/SearchController.cs
+++ b/Jellyfin.Api/Controllers/SearchController.cs
@@ -57,11 +57,6 @@ namespace Jellyfin.Api.Controllers
/// Optional. The maximum number of records to return.
/// Optional. Supply a user id to search within a user's library or omit to search all.
/// The search term to filter on.
- /// Optional filter whether to include people.
- /// Optional filter whether to include media.
- /// Optional filter whether to include genres.
- /// Optional filter whether to include studios.
- /// Optional filter whether to include artists.
/// If specified, only results with the specified item types are returned. This allows multiple, comma delimeted.
/// If specified, results with these item types are filtered out. This allows multiple, comma delimeted.
/// If specified, only results with the specified media types are returned. This allows multiple, comma delimeted.
@@ -71,6 +66,11 @@ namespace Jellyfin.Api.Controllers
/// Optional filter for news.
/// Optional filter for kids.
/// Optional filter for sports.
+ /// Optional filter whether to include people.
+ /// Optional filter whether to include media.
+ /// Optional filter whether to include genres.
+ /// Optional filter whether to include studios.
+ /// Optional filter whether to include artists.
/// An with the results of the search.
[HttpGet]
[Description("Gets search hints based on a search term")]
@@ -80,11 +80,6 @@ namespace Jellyfin.Api.Controllers
[FromQuery] int? limit,
[FromQuery] Guid userId,
[FromQuery, Required] string searchTerm,
- [FromQuery] bool includePeople,
- [FromQuery] bool includeMedia,
- [FromQuery] bool includeGenres,
- [FromQuery] bool includeStudios,
- [FromQuery] bool includeArtists,
[FromQuery] string includeItemTypes,
[FromQuery] string excludeItemTypes,
[FromQuery] string mediaTypes,
@@ -93,7 +88,12 @@ namespace Jellyfin.Api.Controllers
[FromQuery] bool? isSeries,
[FromQuery] bool? isNews,
[FromQuery] bool? isKids,
- [FromQuery] bool? isSports)
+ [FromQuery] bool? isSports,
+ [FromQuery] bool includePeople = true,
+ [FromQuery] bool includeMedia = true,
+ [FromQuery] bool includeGenres = true,
+ [FromQuery] bool includeStudios = true,
+ [FromQuery] bool includeArtists = true)
{
var result = _searchEngine.GetSearchHints(new SearchQuery
{
diff --git a/Jellyfin.Api/Helpers/RequestHelpers.cs b/Jellyfin.Api/Helpers/RequestHelpers.cs
index 6c661e2d32..9f4d34f9c6 100644
--- a/Jellyfin.Api/Helpers/RequestHelpers.cs
+++ b/Jellyfin.Api/Helpers/RequestHelpers.cs
@@ -8,10 +8,10 @@ namespace Jellyfin.Api.Helpers
public static class RequestHelpers
{
///
- /// Splits a string at a seperating character into an array of substrings.
+ /// Splits a string at a separating character into an array of substrings.
///
/// The string to split.
- /// The char that seperates the substrings.
+ /// The char that separates the substrings.
/// Option to remove empty substrings from the array.
/// An array of the substrings.
internal static string[] Split(string value, char separator, bool removeEmpty)