io.searchbox.indices.OpenIndex Maven / Gradle / Ivy
package io.searchbox.indices;
import io.searchbox.action.GenericResultAbstractAction;
/**
* @author cihat keser
*/
public class OpenIndex extends GenericResultAbstractAction {
protected OpenIndex(Builder builder) {
super(builder);
this.indexName = builder.index;
setURI(buildURI());
}
@Override
protected String buildURI() {
return super.buildURI() + "/_open";
}
@Override
public String getRestMethodName() {
return "POST";
}
public static class Builder extends GenericResultAbstractAction.Builder {
private String index;
public Builder(String index) {
this.index = index;
}
@Override
public OpenIndex build() {
return new OpenIndex(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy