Examples of SuggestStatisticsRequest


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

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

        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

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

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
Copyright © 2018 www.massapi.com. 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.