Package crate.elasticsearch.client.action.searchinto

Source Code of crate.elasticsearch.client.action.searchinto.SearchIntoRequestBuilder

package crate.elasticsearch.client.action.searchinto;

import crate.elasticsearch.action.searchinto.SearchIntoAction;
import crate.elasticsearch.action.searchinto.SearchIntoRequest;
import crate.elasticsearch.action.searchinto.SearchIntoResponse;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.ActionRequestBuilder;
import org.elasticsearch.client.Client;
import org.elasticsearch.client.internal.InternalClient;

public class SearchIntoRequestBuilder extends
        ActionRequestBuilder<SearchIntoRequest, SearchIntoResponse,
                SearchIntoRequestBuilder> {

    public SearchIntoRequestBuilder(Client client) {
        super((InternalClient) client, new SearchIntoRequest());
    }

    @Override
    protected void doExecute(ActionListener<SearchIntoResponse> listener) {
        ((Client) client).execute(SearchIntoAction.INSTANCE, request,
                listener);
    }

    public SearchIntoRequestBuilder setIndices(String... indices) {
        request.indices(indices);
        return this;
    }
}
TOP

Related Classes of crate.elasticsearch.client.action.searchinto.SearchIntoRequestBuilder

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.