| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.Search.Documents.Indexes.Models |
| | 11 | | { |
| | 12 | | /// <summary> Language specific stemming filter. This token filter is implemented using Apache Lucene. </summary> |
| | 13 | | public partial class StemmerTokenFilter : TokenFilter |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of StemmerTokenFilter. </summary> |
| | 16 | | /// <param name="name"> The name of the token filter. It must only contain letters, digits, spaces, dashes or un |
| | 17 | | /// <param name="language"> The language to use. </param> |
| | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception> |
| 0 | 19 | | public StemmerTokenFilter(string name, StemmerTokenFilterLanguage language) : base(name) |
| | 20 | | { |
| 0 | 21 | | if (name == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(name)); |
| | 24 | | } |
| | 25 | |
|
| 0 | 26 | | Language = language; |
| 0 | 27 | | ODataType = "#Microsoft.Azure.Search.StemmerTokenFilter"; |
| 0 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> Initializes a new instance of StemmerTokenFilter. </summary> |
| | 31 | | /// <param name="oDataType"> Identifies the concrete type of the token filter. </param> |
| | 32 | | /// <param name="name"> The name of the token filter. It must only contain letters, digits, spaces, dashes or un |
| | 33 | | /// <param name="language"> The language to use. </param> |
| 0 | 34 | | internal StemmerTokenFilter(string oDataType, string name, StemmerTokenFilterLanguage language) : base(oDataType |
| | 35 | | { |
| 0 | 36 | | Language = language; |
| 0 | 37 | | ODataType = oDataType ?? "#Microsoft.Azure.Search.StemmerTokenFilter"; |
| 0 | 38 | | } |
| | 39 | |
|
| | 40 | | /// <summary> The language to use. </summary> |
| 0 | 41 | | public StemmerTokenFilterLanguage Language { get; set; } |
| | 42 | | } |
| | 43 | | } |