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

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

            return(EventIndexType.Fields.Date);
        }