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

io.searchbox.indices.mapping.GetMapping Maven / Gradle / Ivy

There is a newer version: 6.3.1
Show newest version
package io.searchbox.indices.mapping;

import io.searchbox.action.AbstractMultiTypeActionBuilder;
import io.searchbox.action.GenericResultAbstractAction;

/**
 * @author ferhat
 * @author cihat keser
 */
public class GetMapping extends GenericResultAbstractAction {

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

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

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

    public static class Builder extends AbstractMultiTypeActionBuilder {

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy