All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.searchbox.indices.Flush Maven / Gradle / Ivy

package io.searchbox.indices;

import io.searchbox.action.AbstractMultiIndexActionBuilder;
import io.searchbox.action.GenericResultAbstractAction;

/**
 * @author Dogukan Sonmez
 * @author cihat keser
 */
public class Flush extends GenericResultAbstractAction {

    protected Flush(Builder builder) {
        super(builder);
        setURI(buildURI());
    }

    @Override
    protected String buildURI() {
        return super.buildURI() + "/_flush";
    }

    @Override
    public String getRestMethodName() {
        return "POST";
    }

    public static class Builder extends AbstractMultiIndexActionBuilder {

        @Override
        public Flush build() {
            return new Flush(this);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy