| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.Search.Documents.Indexes.Models |
| | 11 | | { |
| | 12 | | /// <summary> Information about a token returned by an analyzer. </summary> |
| | 13 | | public partial class AnalyzedTokenInfo |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of AnalyzedTokenInfo. </summary> |
| | 16 | | /// <param name="token"> The token returned by the analyzer. </param> |
| | 17 | | /// <param name="startOffset"> The index of the first character of the token in the input text. </param> |
| | 18 | | /// <param name="endOffset"> The index of the last character of the token in the input text. </param> |
| | 19 | | /// <param name="position"> The position of the token in the input text relative to other tokens. The first toke |
| | 20 | | /// <exception cref="ArgumentNullException"> <paramref name="token"/> is null. </exception> |
| 18 | 21 | | internal AnalyzedTokenInfo(string token, int startOffset, int endOffset, int position) |
| | 22 | | { |
| 18 | 23 | | if (token == null) |
| | 24 | | { |
| 0 | 25 | | throw new ArgumentNullException(nameof(token)); |
| | 26 | | } |
| | 27 | |
|
| 18 | 28 | | Token = token; |
| 18 | 29 | | StartOffset = startOffset; |
| 18 | 30 | | EndOffset = endOffset; |
| 18 | 31 | | Position = position; |
| 18 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> The token returned by the analyzer. </summary> |
| 18 | 35 | | public string Token { get; } |
| | 36 | | /// <summary> The index of the first character of the token in the input text. </summary> |
| 0 | 37 | | public int StartOffset { get; } |
| | 38 | | /// <summary> The index of the last character of the token in the input text. </summary> |
| 0 | 39 | | public int EndOffset { get; } |
| | 40 | | /// <summary> The position of the token in the input text relative to other tokens. The first token in the input |
| 0 | 41 | | public int Position { get; } |
| | 42 | | } |
| | 43 | | } |