Example usage for org.apache.lucene.analysis.util AbstractAnalysisFactory setExplicitLuceneMatchVersion

List of usage examples for org.apache.lucene.analysis.util AbstractAnalysisFactory setExplicitLuceneMatchVersion

Introduction

In this page you can find the example usage for org.apache.lucene.analysis.util AbstractAnalysisFactory setExplicitLuceneMatchVersion.

Prototype

public void setExplicitLuceneMatchVersion(boolean isExplicitLuceneMatchVersion) 

Source Link

Usage

From source file:org.apache.jackrabbit.oak.plugins.index.lucene.NodeStateAnalyzerFactory.java

License:Apache License

private void init(AbstractAnalysisFactory o, NodeState state) {
    if (o instanceof ResourceLoaderAware) {
        try {/* ww  w  .  j  a v a 2  s .co m*/
            ((ResourceLoaderAware) o).inform(new NodeStateResourceLoader(state, defaultLoader));
        } catch (IOException e) {
            throw new IllegalArgumentException("Error occurred while initializing type " + o.getClass(), e);
        }
    }

    if (state.hasProperty(LuceneIndexConstants.ANL_LUCENE_MATCH_VERSION)) {
        o.setExplicitLuceneMatchVersion(true);
    }
}