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

org.elasticsearch.module.suggest.SuggestClientModule Maven / Gradle / Ivy

package org.elasticsearch.module.suggest;

import org.elasticsearch.action.GenericAction;
import org.elasticsearch.action.suggest.SuggestAction;
import org.elasticsearch.action.suggest.SuggestRefreshAction;
import org.elasticsearch.common.inject.AbstractModule;
import org.elasticsearch.common.inject.multibindings.MapBinder;


public class SuggestClientModule extends AbstractModule {

    @Override
    protected void configure() {
        @SuppressWarnings("rawtypes")
        MapBinder actionsBinder = MapBinder.newMapBinder(binder(), String.class, GenericAction.class);
        actionsBinder.addBinding(SuggestAction.NAME).toInstance(SuggestAction.INSTANCE);
        actionsBinder.addBinding(SuggestRefreshAction.NAME).toInstance(SuggestRefreshAction.INSTANCE);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy