Example #1
0
        ///<summary>A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards)</summary>
        internal static IndicesStatsRequestParameters _Fields <T>(
            this IndicesStatsRequestParameters qs,
            IEnumerable <Expression <Func <T, object> > > fields)
            where T : class
        {
            var _fields = fields.Select(e => (PropertyPathMarker)e);

            qs.AddQueryString("fields", _fields);
            return(qs);
        }
Example #2
0
 ///<summary>A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards)</summary>
 internal static IndicesStatsRequestParameters _CompletionFields <T>(this IndicesStatsRequestParameters qs, IEnumerable <Expression <Func <T, object> > > completion_fields) where T : class =>
 qs.AddQueryString("completion_fields", completion_fields.Select(e => (Field)e));