List of usage examples for org.apache.lucene.analysis.util AbstractAnalysisFactory setExplicitLuceneMatchVersion
public void setExplicitLuceneMatchVersion(boolean isExplicitLuceneMatchVersion)
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); } }