static void Main(string[] args) { var version = "7.5.1"; var esHome = Environment.ExpandEnvironmentVariables($@"%LOCALAPPDATA%\ElasticManaged\{version}\elasticsearch-{version}"); using (var node = new ElasticsearchNode(version, esHome)) { node.SubscribeLines(new LineHighlightWriter()); if (!node.WaitForStarted(TimeSpan.FromMinutes(2))) { throw new Exception(); } // do your work here } }
public DefaultSeeder(ElasticsearchNode node) : this(node, null) { }
public DefaultSeeder(ElasticsearchNode node, IIndexSettings indexSettings) { this.Client = node.Client; this.IndexSettings = indexSettings ?? _defaultIndexSettings; }
public MachineLearningSeeder(ElasticsearchNode node) { this.RoamingFolder = node.FileSystem.RoamingFolder; this.Client = node.Client; }
public ElasticsearchService(IEnumerable <string> arguments) { InitializeComponent(); this.Node = new ElasticsearchNode(arguments); }