private string GetDateField(IElasticQueryOptions options) { if (options != null && options.IndexType.GetType() == typeof(StackIndexType)) { return(_stackLastOccurrenceFieldName); } return(_eventDateFieldName); }
private string GetDateField(IElasticQueryOptions options) { if (options != null && options.IndexType.GetType() == typeof(StackIndexType)) { return(StackIndexType.Fields.LastOccurrence); } return(EventIndexType.Fields.Date); }