Package org.elasticsearch.index.suggest.stats

Examples of org.elasticsearch.index.suggest.stats.SuggestStats


                    break;
                case Translog:
                    translog = new TranslogStats();
                    break;
                case Suggest:
                    suggest = new SuggestStats();
                    break;
                case QueryCache:
                    queryCache = new QueryCacheStats();
                    break;
                default:
View Full Code Here


        } else {
            translog.add(stats.getTranslog());
        }
        if (suggest == null) {
            if (stats.getSuggest() != null) {
                suggest = new SuggestStats();
                suggest.add(stats.getSuggest());
            }
        } else {
            suggest.add(stats.getSuggest());
        }
View Full Code Here

        if (in.readBoolean()) {
            segments = SegmentsStats.readSegmentsStats(in);
        }
        translog = in.readOptionalStreamable(new TranslogStats());
        if (in.getVersion().onOrAfter(Version.V_1_2_0)) {
            suggest = in.readOptionalStreamable(new SuggestStats());
        }
        if (in.getVersion().onOrAfter(Version.V_1_4_0_Beta1)) {
            queryCache = in.readOptionalStreamable(new QueryCacheStats());
        }
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.index.suggest.stats.SuggestStats

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.