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

#17662 [bug] add setters to LengthTokenilter #17694

Merged
merged 2 commits into from
Dec 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -824,8 +824,8 @@ public LanguageDetectionSkill(System.Collections.Generic.IEnumerable<Azure.Searc
public partial class LengthTokenFilter : Azure.Search.Documents.Indexes.Models.TokenFilter
{
public LengthTokenFilter(string name) { }
public int? MaxLength { get { throw null; } }
public int? MinLength { get { throw null; } }
public int? MaxLength { get { throw null; } set { } }
public int? MinLength { get { throw null; } set { } }
}
public partial class LexicalAnalyzer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ public partial class LengthTokenFilter
/// Gets the minimum length in characters. Default is 0. Maximum is 300. Must be less than the value of <see cref="MinLength"/>.
/// </summary>
[CodeGenMember("min")]
public int? MinLength { get; }
public int? MinLength { get; set; }

/// <summary>
/// Gets the maximum length in characters. Default and maximum is 300.
/// </summary>
[CodeGenMember("max")]
public int? MaxLength { get; }
public int? MaxLength { get; set; }
}
}