-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: multi indices search serialization (#841)
* fix: multi indices search serialization * fix: dotnet format * feat: flag `MultipleQueries` as Obsolete. * fix: dotnet format
- Loading branch information
1 parent
8ed2b55
commit ad71b7e
Showing
3 changed files
with
186 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Algolia.Search.Models.Common; | ||
|
||
namespace Algolia.Search.Models.Search | ||
{ | ||
/// <summary> | ||
/// For more information regarding the parameters | ||
/// https://www.algolia.com/doc/api-reference/search-api-parameters/ | ||
/// </summary> | ||
public class QueryMultiIndices : Query, IMultipleQueries | ||
{ | ||
/// <summary> | ||
/// Create a new query with an empty search query, for a dedicated indice, | ||
/// </summary> | ||
/// <param name="indexName"></param> | ||
/// <param name="searchQuery"></param> | ||
public QueryMultiIndices(string indexName, string searchQuery = null) | ||
{ | ||
IndexName = indexName; | ||
SearchQuery = searchQuery; | ||
} | ||
|
||
/// <summary> | ||
/// The name of the index to perform the operation | ||
/// </summary> | ||
public string IndexName { get; set; } | ||
} | ||
} |