-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
StopAnalyzer.cs
38 lines (32 loc) · 1.82 KB
/
StopAnalyzer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.Search.Documents.Indexes.Models
{
/// <summary> Divides text at non-letters; Applies the lowercase and stopword token filters. This analyzer is implemented using Apache Lucene. </summary>
public partial class StopAnalyzer : LexicalAnalyzer
{
/// <summary> Initializes a new instance of <see cref="StopAnalyzer"/>. </summary>
/// <param name="name"> The name of the analyzer. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception>
public StopAnalyzer(string name) : base(name)
{
Argument.AssertNotNull(name, nameof(name));
Stopwords = new ChangeTrackingList<string>();
ODataType = "#Microsoft.Azure.Search.StopAnalyzer";
}
/// <summary> Initializes a new instance of <see cref="StopAnalyzer"/>. </summary>
/// <param name="oDataType"> A URI fragment specifying the type of analyzer. </param>
/// <param name="name"> The name of the analyzer. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters. </param>
/// <param name="stopwords"> A list of stopwords. </param>
internal StopAnalyzer(string oDataType, string name, IList<string> stopwords) : base(oDataType, name)
{
Stopwords = stopwords;
ODataType = oDataType ?? "#Microsoft.Azure.Search.StopAnalyzer";
}
}
}