Example usage for org.apache.lucene.analysis Analyzer getReuseStrategy

List of usage examples for org.apache.lucene.analysis Analyzer getReuseStrategy

Introduction

In this page you can find the example usage for org.apache.lucene.analysis Analyzer getReuseStrategy.

Prototype

public final ReuseStrategy getReuseStrategy() 

Source Link

Document

Returns the used ReuseStrategy .

Usage

From source file:com.google.gerrit.lucene.CustomMappingAnalyzer.java

License:Apache License

public CustomMappingAnalyzer(Analyzer delegate, Map<String, String> customMappings) {
    super(delegate.getReuseStrategy());
    this.delegate = delegate;
    this.customMappings = customMappings;
}

From source file:com.stratio.cassandra.lucene.index.TokenLengthAnalyzer.java

License:Apache License

/**
 * Builds a new {@link TokenLengthAnalyzer} which wraps the specified {@link Analyzer}.
 *
 * @param analyzer the {@link Analyzer} to be wrapped
 *//*from  www  . j a  v a 2  s. c  om*/
public TokenLengthAnalyzer(Analyzer analyzer) {
    super(analyzer.getReuseStrategy());
    this.analyzer = analyzer;
}

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

License:Apache License

public NamedAnalyzer(String name, AnalyzerScope scope, Analyzer analyzer, int positionOffsetGap) {
    super(analyzer.getReuseStrategy());
    this.name = name;
    this.scope = scope;
    this.analyzer = analyzer;
    this.positionOffsetGap = positionOffsetGap;
}

From source file:org.hibernate.search.backend.impl.lucene.analysis.HibernateSearchNormalizerWrapper.java

License:LGPL

public HibernateSearchNormalizerWrapper(Analyzer delegate, String normalizerName) {
    super(delegate.getReuseStrategy());
    this.delegate = delegate;
    this.normalizerName = normalizerName;
}