Example usage for org.apache.lucene.analysis.path PathHierarchyTokenizer PathHierarchyTokenizer

List of usage examples for org.apache.lucene.analysis.path PathHierarchyTokenizer PathHierarchyTokenizer

Introduction

In this page you can find the example usage for org.apache.lucene.analysis.path PathHierarchyTokenizer PathHierarchyTokenizer.

Prototype

public PathHierarchyTokenizer(AttributeFactory factory, int bufferSize, char delimiter, char replacement,
            int skip) 

Source Link

Usage

From source file:org.elasticsearch.index.analysis.PathHierarchyTokenizerFactory.java

License:Apache License

@Override
public Tokenizer create(Reader reader) {
    if (reverse) {
        return new ReversePathHierarchyTokenizer(reader, bufferSize, delimiter, replacement, skip);
    }//from   ww  w  .j  ava  2s.co m
    return new PathHierarchyTokenizer(reader, bufferSize, delimiter, replacement, skip);
}