io.searchbox.core.Index Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jest-common Show documentation
Show all versions of jest-common Show documentation
ElasticSearch Java REST client - shared library package
package io.searchbox.core;
import io.searchbox.action.BulkableAction;
import io.searchbox.action.SingleResultAbstractDocumentTargetedAction;
import io.searchbox.params.Parameters;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Collection;
/**
* @author Dogukan Sonmez
* @author cihat keser
*/
public class Index extends SingleResultAbstractDocumentTargetedAction implements BulkableAction {
protected Index(Builder builder) {
super(builder);
this.payload = builder.source;
setURI(buildURI());
}
@Override
public String getPathToResult() {
return "ok";
}
@Override
public String getRestMethodName() {
return (id != null) ? "PUT" : "POST";
}
@Override
public String getBulkMethodName() {
Collection
© 2015 - 2025 Weber Informatics LLC | Privacy Policy