com.carrotsearch.lingo3g.integrations.elasticsearch.Lingo3GPlugin Maven / Gradle / Ivy
package com.carrotsearch.lingo3g.integrations.elasticsearch;
import java.nio.file.Path;
import java.util.Collection;
import java.util.Collections;
import java.util.function.Supplier;
import org.elasticsearch.client.Client;
import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
import org.elasticsearch.env.Environment;
import org.elasticsearch.env.NodeEnvironment;
import org.elasticsearch.plugins.Plugin;
import org.elasticsearch.repositories.RepositoriesService;
import org.elasticsearch.script.ScriptService;
import org.elasticsearch.threadpool.ThreadPool;
import org.elasticsearch.watcher.ResourceWatcherService;
import org.slf4j.LoggerFactory;
/**
* Elasticsearch extension plugin adding Lingo3G clustering algorithm support to elasticsearch-carrot2.
*/
public class Lingo3GPlugin extends Plugin {
public static final String PLUGIN_NAME = "elasticsearch-lingo3g";
public Lingo3GPlugin() {
// A hack to initialize slf4j bindings properly. ES sets context
// class loader properly when initializing the plugin, not when
// creating components.
// https://github.com/elastic/elasticsearch/pull/63185
hackInitSlf4j();
}
@Override
public Collection
© 2015 - 2024 Weber Informatics LLC | Privacy Policy