Share via


PathHierarchyTokenizer Class

Definition

Tokenizer for path-like hierarchies. This tokenizer is implemented using Apache Lucene.

public class PathHierarchyTokenizer : Azure.Search.Documents.Indexes.Models.LexicalTokenizer
public class PathHierarchyTokenizer : Azure.Search.Documents.Indexes.Models.LexicalTokenizer, System.ClientModel.Primitives.IJsonModel<Azure.Search.Documents.Indexes.Models.PathHierarchyTokenizer>, System.ClientModel.Primitives.IPersistableModel<Azure.Search.Documents.Indexes.Models.PathHierarchyTokenizer>
type PathHierarchyTokenizer = class
    inherit LexicalTokenizer
type PathHierarchyTokenizer = class
    inherit LexicalTokenizer
    interface IJsonModel<PathHierarchyTokenizer>
    interface IPersistableModel<PathHierarchyTokenizer>
Public Class PathHierarchyTokenizer
Inherits LexicalTokenizer
Public Class PathHierarchyTokenizer
Inherits LexicalTokenizer
Implements IJsonModel(Of PathHierarchyTokenizer), IPersistableModel(Of PathHierarchyTokenizer)
Inheritance
PathHierarchyTokenizer
Implements

Constructors

PathHierarchyTokenizer(String)

Initializes a new instance of PathHierarchyTokenizer.

Properties

Delimiter

The delimiter character to use. Default is "/".

MaxTokenLength

The maximum token length. Default and maximum is 300.

Name

The name of the tokenizer. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters.

(Inherited from LexicalTokenizer)
NumberOfTokensToSkip

The number of initial tokens to skip. Default is 0.

Replacement

A value that, if set, replaces the delimiter character. Default is "/".

ReverseTokenOrder

A value indicating whether to generate tokens in reverse order. Default is false.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<LexicalTokenizer>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from LexicalTokenizer)
IJsonModel<LexicalTokenizer>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from LexicalTokenizer)
IJsonModel<PathHierarchyTokenizer>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<PathHierarchyTokenizer>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LexicalTokenizer>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from LexicalTokenizer)
IPersistableModel<LexicalTokenizer>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from LexicalTokenizer)
IPersistableModel<LexicalTokenizer>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from LexicalTokenizer)
IPersistableModel<PathHierarchyTokenizer>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<PathHierarchyTokenizer>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<PathHierarchyTokenizer>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to