public PutWarmerRequestTests()
		{
			QueryContainer query = new MatchAllQuery();

			var request = new PutWarmerRequest("warmer_1")
			{
				Indices = new IndexNameMarker[] { "my-index" },
				SearchDescriptor = new SearchRequest { Query = query }
			};

			var response = this._client.PutWarmer(request);
			this._status = response.ConnectionStatus;
		}
Beispiel #2
0
        public PutWarmerRequestTests()
        {
            QueryContainer query = new MatchAllQuery();

            var request = new PutWarmerRequest("warmer_1")
            {
                Indices          = new IndexNameMarker[] { "my-index" },
                SearchDescriptor = new SearchRequest {
                    Query = query
                }
            };

            var response = this._client.PutWarmer(request);

            this._status = response.ConnectionStatus;
        }