| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 3 | | // license information. |
| | 4 | |
|
| | 5 | | namespace Microsoft.Azure.Search.Models |
| | 6 | | { |
| | 7 | | using System; |
| | 8 | | using Newtonsoft.Json; |
| | 9 | |
|
| | 10 | | /// <summary> |
| | 11 | | /// Tokenizer for path-like hierarchies. This tokenizer is implemented |
| | 12 | | /// using Apache Lucene. |
| | 13 | | /// <see href="http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/path/PathHierarchyTo |
| | 14 | | /// </summary> |
| | 15 | | [JsonObject("#Microsoft.Azure.Search.PathHierarchyTokenizer")] |
| | 16 | | [Obsolete("This type is obsolete. Please use PathHierarchyTokenizerV2 instead.")] |
| | 17 | | public partial class PathHierarchyTokenizer : Tokenizer |
| | 18 | | { |
| | 19 | | /// <summary> |
| | 20 | | /// Initializes a new instance of the PathHierarchyTokenizer class. |
| | 21 | | /// </summary> |
| 0 | 22 | | public PathHierarchyTokenizer() { } |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the PathHierarchyTokenizer class. |
| | 26 | | /// </summary> |
| | 27 | | public PathHierarchyTokenizer(string name, char? delimiter = default(char?), char? replacement = default(char?), |
| 0 | 28 | | : base(name) |
| | 29 | | { |
| 0 | 30 | | Delimiter = delimiter; |
| 0 | 31 | | Replacement = replacement; |
| 0 | 32 | | BufferSize = bufferSize; |
| 0 | 33 | | ReverseTokenOrder = reverseTokenOrder; |
| 0 | 34 | | NumberOfTokensToSkip = numberOfTokensToSkip; |
| 0 | 35 | | } |
| | 36 | |
|
| | 37 | | /// <summary> |
| | 38 | | /// Gets or sets the delimiter character to use. Default is "/". |
| | 39 | | /// </summary> |
| | 40 | | [JsonProperty(PropertyName = "delimiter")] |
| 0 | 41 | | public char? Delimiter { get; set; } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// Gets or sets a value that, if set, replaces the delimiter |
| | 45 | | /// character. Default is "/". |
| | 46 | | /// </summary> |
| | 47 | | [JsonProperty(PropertyName = "replacement")] |
| 0 | 48 | | public char? Replacement { get; set; } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// Gets or sets the buffer size. Default is 1024. |
| | 52 | | /// </summary> |
| | 53 | | [JsonProperty(PropertyName = "bufferSize")] |
| 0 | 54 | | public int? BufferSize { get; set; } |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// Gets or sets a value indicating whether to generate tokens in |
| | 58 | | /// reverse order. Default is false. |
| | 59 | | /// </summary> |
| | 60 | | [JsonProperty(PropertyName = "reverse")] |
| 0 | 61 | | public bool? ReverseTokenOrder { get; set; } |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets or sets the number of initial tokens to skip. Default is 0. |
| | 65 | | /// </summary> |
| | 66 | | [JsonProperty(PropertyName = "skip")] |
| 0 | 67 | | public int? NumberOfTokensToSkip { get; set; } |
| | 68 | | } |
| | 69 | | } |