Exemplo n.º 1
0
        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
            }
        }
Exemplo n.º 2
0
 public DefaultSeeder(ElasticsearchNode node) : this(node, null)
 {
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 5
0
 public ElasticsearchService(IEnumerable <string> arguments)
 {
     InitializeComponent();
     this.Node = new ElasticsearchNode(arguments);
 }