Example usage for org.apache.lucene.analysis.tokenattributes TypeAttributeImpl type

List of usage examples for org.apache.lucene.analysis.tokenattributes TypeAttributeImpl type

Introduction

In this page you can find the example usage for org.apache.lucene.analysis.tokenattributes TypeAttributeImpl type.

Prototype

String type

To view the source code for org.apache.lucene.analysis.tokenattributes TypeAttributeImpl type.

Click Source Link

Usage

From source file:aos.lucene.analysis.AnalyzerUtils.java

License:Apache License

public static String getTerm(AttributeSource source) {
    TypeAttributeImpl attr = source.addAttribute(TypeAttributeImpl.class);
    return attr.type();
}

From source file:aos.lucene.analysis.AnalyzerUtils.java

License:Apache License

public static String getType(AttributeSource source) {
    TypeAttributeImpl attr = source.addAttribute(TypeAttributeImpl.class);
    return attr.type();
}