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

io.searchbox.indices.settings.GetSettings Maven / Gradle / Ivy

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

import io.searchbox.action.AbstractMultiIndexActionBuilder;

/**
 * The get settings API allows to retrieve settings of index/indices.
 *
 * @author Dogukan Sonmez
 * @author cihat keser
 */
public class GetSettings extends IndicesSettingsAbstractAction {

    protected GetSettings(Builder builder) {
        super(builder);
    }

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

    public static class Builder extends AbstractMultiIndexActionBuilder {

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

        /**
         * Prefix Query Option allows to include only settings (whose keys) matches the specified prefix.
         */
        public Builder prefixQuery(String prefixQuery) {
            return setParameter("prefix", prefixQuery);
        }

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy