| | 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> Filters out tokens with same text as the previous token. This token filter is implemented using Apache |
| | 13 | | public partial class UniqueTokenFilter : TokenFilter |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of UniqueTokenFilter. </summary> |
| | 16 | | /// <param name="name"> The name of the token filter. It must only contain letters, digits, spaces, dashes or un |
| | 17 | | /// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception> |
| 0 | 18 | | public UniqueTokenFilter(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.UniqueTokenFilter"; |
| 0 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> Initializes a new instance of UniqueTokenFilter. </summary> |
| | 29 | | /// <param name="oDataType"> Identifies the concrete type of the token filter. </param> |
| | 30 | | /// <param name="name"> The name of the token filter. It must only contain letters, digits, spaces, dashes or un |
| | 31 | | /// <param name="onlyOnSamePosition"> A value indicating whether to remove duplicates only at the same position. |
| 0 | 32 | | internal UniqueTokenFilter(string oDataType, string name, bool? onlyOnSamePosition) : base(oDataType, name) |
| | 33 | | { |
| 0 | 34 | | OnlyOnSamePosition = onlyOnSamePosition; |
| 0 | 35 | | ODataType = oDataType ?? "#Microsoft.Azure.Search.UniqueTokenFilter"; |
| 0 | 36 | | } |
| | 37 | |
|
| | 38 | | /// <summary> A value indicating whether to remove duplicates only at the same position. Default is false. </sum |
| 0 | 39 | | public bool? OnlyOnSamePosition { get; set; } |
| | 40 | | } |
| | 41 | | } |