< Summary

Class:Microsoft.Azure.Search.Models.StopAnalyzer
Assembly:Microsoft.Azure.Search.Service
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\StopAnalyzer.cs
Covered lines:8
Uncovered lines:0
Coverable lines:8
Total lines:73
Line coverage:100% (8 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-100%100%
get_Stopwords()-100%100%
Validate()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\StopAnalyzer.cs

#LineLine coverage
 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
 11namespace 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>
 1231        public StopAnalyzer()
 32        {
 33            CustomInit();
 1234        }
 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>))
 1245            : base(name)
 46        {
 1247            Stopwords = stopwords;
 48            CustomInit();
 1249        }
 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")]
 5660        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        {
 1670            base.Validate();
 1671        }
 72    }
 73}