Package de.spinscale.elasticsearch.action.suggest.statistics

Examples of de.spinscale.elasticsearch.action.suggest.statistics.SuggestStatisticsRequest


        controller.registerHandler(GET, "/__suggestStatistics", this);
    }

    @Override
    public void handleRequest(final RestRequest request, final RestChannel channel, Client client) {
        client.execute(SuggestStatisticsAction.INSTANCE,  new SuggestStatisticsRequest(),
                new RestToXContentListener<SuggestStatisticsResponse>(channel));
    }
View Full Code Here


        client().execute(SuggestRefreshAction.INSTANCE, refreshRequest).actionGet();
    }

    @Override
    public FstStats getStatistics() throws Exception {
        SuggestStatisticsRequest suggestStatisticsRequest = new SuggestStatisticsRequest();
        return client().execute(SuggestStatisticsAction.INSTANCE, suggestStatisticsRequest).actionGet().fstStats();
    }
View Full Code Here

import org.elasticsearch.client.Client;

public class SuggestStatisticsRequestBuilder extends ActionRequestBuilder<SuggestStatisticsRequest, SuggestStatisticsResponse, SuggestStatisticsRequestBuilder, Client> {

    public SuggestStatisticsRequestBuilder(Client client) {
        super(client, new SuggestStatisticsRequest());
    }
View Full Code Here

TOP

Related Classes of de.spinscale.elasticsearch.action.suggest.statistics.SuggestStatisticsRequest

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.