Package org.elasticsearch.indices.analysis

Examples of org.elasticsearch.indices.analysis.PreBuiltTokenizers


    @Override
    public TokenizerFactory create(String name, Settings settings) {
        Version indexVersion = Version.indexCreated(settings);
        if (!Version.CURRENT.equals(indexVersion)) {
            PreBuiltTokenizers preBuiltTokenizers = PreBuiltTokenizers.getOrDefault(name, null);
            if (preBuiltTokenizers != null) {
                return preBuiltTokenizers.getTokenizerFactory(indexVersion);
            }
        }

        return tokenizerFactory;
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.indices.analysis.PreBuiltTokenizers

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.