org.elasticsearch.plugin.nlpcn.SqlPlug Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch-sql Show documentation
Show all versions of elasticsearch-sql Show documentation
Query elasticsearch using SQL
package org.elasticsearch.plugin.nlpcn;
import org.elasticsearch.action.ActionRequest;
import org.elasticsearch.action.ActionResponse;
import org.elasticsearch.index.reindex.UpdateByQueryAction;
import org.elasticsearch.plugins.ActionPlugin;
import org.elasticsearch.plugins.Plugin;
import org.elasticsearch.rest.RestHandler;
import java.util.ArrayList;
import java.util.List;
public class SqlPlug extends Plugin implements ActionPlugin {
public SqlPlug() {
}
public String name() {
return "sql";
}
public String description() {
return "Use sql to query elasticsearch.";
}
@Override
public List> getRestHandlers() {
List> restHandlers = new ArrayList<>(1);
restHandlers.add(RestSqlAction.class);
return restHandlers;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy