| | | 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> Tokenizes urls and emails as one token. This tokenizer is implemented using Apache Lucene. </summary> |
| | | 13 | | public partial class UaxUrlEmailTokenizer : LexicalTokenizer |
| | | 14 | | { |
| | | 15 | | /// <summary> Initializes a new instance of UaxUrlEmailTokenizer. </summary> |
| | | 16 | | /// <param name="name"> The name of the tokenizer. It must only contain letters, digits, spaces, dashes or under |
| | | 17 | | /// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception> |
| | 0 | 18 | | public UaxUrlEmailTokenizer(string name) : base(name) |
| | | 19 | | { |
| | 0 | 20 | | if (name == null) |
| | | 21 | | { |
| | 0 | 22 | | throw new ArgumentNullException(nameof(name)); |
| | | 23 | | } |
| | | 24 | | |
| | 0 | 25 | | ODataType = "#Microsoft.Azure.Search.UaxUrlEmailTokenizer"; |
| | 0 | 26 | | } |
| | | 27 | | |
| | | 28 | | /// <summary> Initializes a new instance of UaxUrlEmailTokenizer. </summary> |
| | | 29 | | /// <param name="oDataType"> Identifies the concrete type of the tokenizer. </param> |
| | | 30 | | /// <param name="name"> The name of the tokenizer. It must only contain letters, digits, spaces, dashes or under |
| | | 31 | | /// <param name="maxTokenLength"> The maximum token length. Default is 255. Tokens longer than the maximum lengt |
| | 0 | 32 | | internal UaxUrlEmailTokenizer(string oDataType, string name, int? maxTokenLength) : base(oDataType, name) |
| | | 33 | | { |
| | 0 | 34 | | MaxTokenLength = maxTokenLength; |
| | 0 | 35 | | ODataType = oDataType ?? "#Microsoft.Azure.Search.UaxUrlEmailTokenizer"; |
| | 0 | 36 | | } |
| | | 37 | | |
| | | 38 | | /// <summary> The maximum token length. Default is 255. Tokens longer than the maximum length are split. The max |
| | 0 | 39 | | public int? MaxTokenLength { get; set; } |
| | | 40 | | } |
| | | 41 | | } |