| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Search.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Converts alphabetic, numeric, and symbolic Unicode characters which are |
| | 18 | | /// not in the first 127 ASCII characters (the "Basic Latin" Unicode block) |
| | 19 | | /// into their ASCII equivalents, if such equivalents exist. This token |
| | 20 | | /// filter is implemented using Apache Lucene. |
| | 21 | | /// <see |
| | 22 | | /// href="http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldin |
| | 23 | | /// /> |
| | 24 | | /// </summary> |
| | 25 | | [Newtonsoft.Json.JsonObject("#Microsoft.Azure.Search.AsciiFoldingTokenFilter")] |
| | 26 | | public partial class AsciiFoldingTokenFilter : TokenFilter |
| | 27 | | { |
| | 28 | | /// <summary> |
| | 29 | | /// Initializes a new instance of the AsciiFoldingTokenFilter class. |
| | 30 | | /// </summary> |
| 4 | 31 | | public AsciiFoldingTokenFilter() |
| | 32 | | { |
| | 33 | | CustomInit(); |
| 4 | 34 | | } |
| | 35 | |
|
| | 36 | | /// <summary> |
| | 37 | | /// Initializes a new instance of the AsciiFoldingTokenFilter class. |
| | 38 | | /// </summary> |
| | 39 | | /// <param name="name">The name of the token filter. It must only |
| | 40 | | /// contain letters, digits, spaces, dashes or underscores, can only |
| | 41 | | /// start and end with alphanumeric characters, and is limited to 128 |
| | 42 | | /// characters.</param> |
| | 43 | | /// <param name="preserveOriginal">A value indicating whether the |
| | 44 | | /// original token will be kept. Default is false.</param> |
| | 45 | | public AsciiFoldingTokenFilter(string name, bool? preserveOriginal = default(bool?)) |
| 4 | 46 | | : base(name) |
| | 47 | | { |
| 4 | 48 | | PreserveOriginal = preserveOriginal; |
| | 49 | | CustomInit(); |
| 4 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// An initialization method that performs custom operations like setting defaults |
| | 54 | | /// </summary> |
| | 55 | | partial void CustomInit(); |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets or sets a value indicating whether the original token will be |
| | 59 | | /// kept. Default is false. |
| | 60 | | /// </summary> |
| | 61 | | [JsonProperty(PropertyName = "preserveOriginal")] |
| 20 | 62 | | public bool? PreserveOriginal { get; set; } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Validate the object. |
| | 66 | | /// </summary> |
| | 67 | | /// <exception cref="Rest.ValidationException"> |
| | 68 | | /// Thrown if validation fails |
| | 69 | | /// </exception> |
| | 70 | | public override void Validate() |
| | 71 | | { |
| 4 | 72 | | base.Validate(); |
| 4 | 73 | | } |
| | 74 | | } |
| | 75 | | } |