protected internal override IEnumerable <object> ApplyReduceFunctionIfExists(IndexQuery indexQuery, IEnumerable <object> enumerable)
        {
            if (Reduce == null)
            {
                return(enumerable.Take(indexQuery.PageSize));
            }

            var compile = Reduce.Compile();

            return(compile(enumerable.Cast <TReduceResult>()).Cast <object>().Take(indexQuery.PageSize));
        }