Example #1
0
        /// <summary>
        /// For GetWarmer and DeleteWarmer operations
        /// </summary>
        public string GetWarmerPath(GetWarmerDescriptor descriptor)
        {
            var extension = string.Format("_warmer/{0}", descriptor._WarmerName);

            string indices;

            if (descriptor._Indices.HasAny())
            {
                indices = string.Join(",", descriptor._Indices);
            }
            else if (descriptor._Indices != null || descriptor._AllIndices)             //if set to empty array asume all
            {
                indices = "_all";
            }
            else
            {
                indices = this._connectionSettings.DefaultIndex;
            }

            return(this.SearchPathJoin(indices, null, null, extension));
        }
 protected IGetWarmerRequest ReadFluent(string name, GetWarmerDescriptor d) => d.Index <Project>().Name(name);