io.searchbox.indices.ClearCache 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 ClearCache extends GenericResultAbstractAction {
protected ClearCache(Builder builder) {
super(builder);
setURI(buildURI());
}
@Override
protected String buildURI() {
return super.buildURI() + "/_cache/clear";
}
@Override
public String getRestMethodName() {
return "POST";
}
public static class Builder extends AbstractMultiIndexActionBuilder {
public Builder filter(boolean filter) {
setParameter("filter", filter);
return this;
}
public Builder fieldData(boolean fieldData) {
setParameter("field_data", fieldData);
return this;
}
public Builder bloom(boolean bloom) {
setParameter("bloom", bloom);
return this;
}
@Override
public ClearCache build() {
return new ClearCache(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy