コード例 #1
0
        private string GetDateField(IElasticQueryOptions options)
        {
            if (options != null && options.IndexType.GetType() == typeof(StackIndexType))
            {
                return(_stackLastOccurrenceFieldName);
            }

            return(_eventDateFieldName);
        }
コード例 #2
0
        private string GetDateField(IElasticQueryOptions options)
        {
            if (options != null && options.IndexType.GetType() == typeof(StackIndexType))
            {
                return(StackIndexType.Fields.LastOccurrence);
            }

            return(EventIndexType.Fields.Date);
        }