|  |  | 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.Collections; | 
|  |  | 15 |  |     using System.Collections.Generic; | 
|  |  | 16 |  |     using System.Linq; | 
|  |  | 17 |  |  | 
|  |  | 18 |  |     /// <summary> | 
|  |  | 19 |  |     /// Divides text at non-letters; Applies the lowercase and stopword token | 
|  |  | 20 |  |     /// filters. This analyzer is implemented using Apache Lucene. | 
|  |  | 21 |  |     /// <see | 
|  |  | 22 |  |     /// href="http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/StopAnalyzer.html" | 
|  |  | 23 |  |     /// /> | 
|  |  | 24 |  |     /// </summary> | 
|  |  | 25 |  |     [Newtonsoft.Json.JsonObject("#Microsoft.Azure.Search.StopAnalyzer")] | 
|  |  | 26 |  |     public partial class StopAnalyzer : Analyzer | 
|  |  | 27 |  |     { | 
|  |  | 28 |  |         /// <summary> | 
|  |  | 29 |  |         /// Initializes a new instance of the StopAnalyzer class. | 
|  |  | 30 |  |         /// </summary> | 
|  | 12 | 31 |  |         public StopAnalyzer() | 
|  |  | 32 |  |         { | 
|  |  | 33 |  |             CustomInit(); | 
|  | 12 | 34 |  |         } | 
|  |  | 35 |  |  | 
|  |  | 36 |  |         /// <summary> | 
|  |  | 37 |  |         /// Initializes a new instance of the StopAnalyzer class. | 
|  |  | 38 |  |         /// </summary> | 
|  |  | 39 |  |         /// <param name="name">The name of the analyzer. It must only contain | 
|  |  | 40 |  |         /// letters, digits, spaces, dashes or underscores, can only start and | 
|  |  | 41 |  |         /// end with alphanumeric characters, and is limited to 128 | 
|  |  | 42 |  |         /// characters.</param> | 
|  |  | 43 |  |         /// <param name="stopwords">A list of stopwords.</param> | 
|  |  | 44 |  |         public StopAnalyzer(string name, IList<string> stopwords = default(IList<string>)) | 
|  | 12 | 45 |  |             : base(name) | 
|  |  | 46 |  |         { | 
|  | 12 | 47 |  |             Stopwords = stopwords; | 
|  |  | 48 |  |             CustomInit(); | 
|  | 12 | 49 |  |         } | 
|  |  | 50 |  |  | 
|  |  | 51 |  |         /// <summary> | 
|  |  | 52 |  |         /// An initialization method that performs custom operations like setting defaults | 
|  |  | 53 |  |         /// </summary> | 
|  |  | 54 |  |         partial void CustomInit(); | 
|  |  | 55 |  |  | 
|  |  | 56 |  |         /// <summary> | 
|  |  | 57 |  |         /// Gets or sets a list of stopwords. | 
|  |  | 58 |  |         /// </summary> | 
|  |  | 59 |  |         [JsonProperty(PropertyName = "stopwords")] | 
|  | 56 | 60 |  |         public IList<string> Stopwords { get; set; } | 
|  |  | 61 |  |  | 
|  |  | 62 |  |         /// <summary> | 
|  |  | 63 |  |         /// Validate the object. | 
|  |  | 64 |  |         /// </summary> | 
|  |  | 65 |  |         /// <exception cref="Rest.ValidationException"> | 
|  |  | 66 |  |         /// Thrown if validation fails | 
|  |  | 67 |  |         /// </exception> | 
|  |  | 68 |  |         public override void Validate() | 
|  |  | 69 |  |         { | 
|  | 16 | 70 |  |             base.Validate(); | 
|  | 16 | 71 |  |         } | 
|  |  | 72 |  |     } | 
|  |  | 73 |  | } |