Skip to content

Commit 635ac0a

Browse files
Add Preset parameters to both search parameters classes (#260)
1 parent 99c9678 commit 635ac0a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/Typesense/SearchParameters.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ public record MultiSearchParameters : SearchParameters
3737

3838
[JsonPropertyName("group_missing_values")]
3939
public bool? GroupMissingValues { get; set; }
40+
41+
/// <summary>
42+
/// Set this parameter to the value of a preset that has been created in typesense.
43+
/// The query parameters of the preset will then be used in your search.
44+
/// </summary>
45+
[JsonPropertyName("preset")]
46+
public bool? Preset { get; set; }
4047

4148
public MultiSearchParameters(string collection, string text) : base(text)
4249
{
@@ -87,6 +94,13 @@ public record SearchParameters
8794
[JsonPropertyName("infix")]
8895
public string? Infix { get; set; }
8996

97+
/// <summary>
98+
/// Set this parameter to the value of a preset that has been created in typesense.
99+
/// The query parameters of the preset will then be used in your search.
100+
/// </summary>
101+
[JsonPropertyName("preset")]
102+
public bool? Preset { get; set; }
103+
90104
/// <summary>
91105
/// Set this parameter to true if you wish to split the search query into space separated words yourself.
92106
/// When set to true, we will only split the search query by space,

0 commit comments

Comments
 (0)