import org.elasticsearch.node.NodeBuilder;
// import static org.elasticsearch.node.NodeBuilder.*;
import org.elasticsearch.common.settings.ImmutableSettings;
public class ElasticSearch {
public static void main(String[] args) {
NodeBuilder nb = NodeBuilder.nodeBuilder();
nb.local(true);
nb.settings(ImmutableSettings.settingsBuilder().loadFromClasspath("elasticsearch.yml"));
nb.node();
while (true) {
try {
Thread.currentThread().sleep(60000);
} catch (Exception e) {
/* ignore */
}
}
}
}