Example usage for org.apache.lucene.analysis.standard UAX29URLEmailTokenizer URL

List of usage examples for org.apache.lucene.analysis.standard UAX29URLEmailTokenizer URL

Introduction

In this page you can find the example usage for org.apache.lucene.analysis.standard UAX29URLEmailTokenizer URL.

Prototype

int URL

To view the source code for org.apache.lucene.analysis.standard UAX29URLEmailTokenizer URL.

Click Source Link

Document

URL token type

Usage

From source file:indexer.TweetAnalyzer.java

@Override
protected boolean accept() throws IOException {
    return !(typeAttr.type() == UAX29URLEmailTokenizer.TOKEN_TYPES[UAX29URLEmailTokenizer.URL]);
}

From source file:webdocs.WebDocAnalyzer.java

@Override
protected boolean accept() throws IOException {
    boolean isURL = typeAttr.type() == UAX29URLEmailTokenizer.TOKEN_TYPES[UAX29URLEmailTokenizer.URL];
    return !isURL;
}