-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
AnalyzeTextOptions.cs
32 lines (26 loc) · 1.05 KB
/
AnalyzeTextOptions.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
// 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> Specifies some text and analysis components used to break that text into tokens. </summary>
public partial class AnalyzeTextOptions
{
/// <summary> Initializes a new instance of <see cref="AnalyzeTextOptions"/>. </summary>
/// <param name="text"> The text to break into tokens. </param>
/// <exception cref="ArgumentNullException"> <paramref name="text"/> is null. </exception>
public AnalyzeTextOptions(string text)
{
Argument.AssertNotNull(text, nameof(text));
Text = text;
TokenFilters = new ChangeTrackingList<TokenFilterName>();
CharFilters = new ChangeTrackingList<string>();
}
/// <summary> The text to break into tokens. </summary>
public string Text { get; }
}
}