public static DynamicQueryMappingItem CreateGroupBy(QueryFieldName name, GroupByArrayBehavior groupByArrayBehavior, Dictionary <QueryFieldName, WhereField> whereFields) { if (whereFields.TryGetValue(name, out var whereField)) { return(new DynamicQueryMappingItem(name, AggregationOperation.None, groupByArrayBehavior, true, whereField.IsFullTextSearch, whereField.IsExactSearch, whereField.Spatial)); } return(new DynamicQueryMappingItem(name, AggregationOperation.None, groupByArrayBehavior, false, false, false, null)); }
private DynamicQueryMappingItem(QueryFieldName name, AggregationOperation aggregationOperation, GroupByArrayBehavior groupByArrayBehavior, bool isSpecifiedInWhere, bool isFullTextSearch, bool isExactSearch, AutoSpatialOptions spatial) { Name = name; AggregationOperation = aggregationOperation; GroupByArrayBehavior = groupByArrayBehavior; IsSpecifiedInWhere = isSpecifiedInWhere; IsFullTextSearch = isFullTextSearch; IsExactSearch = isExactSearch; Spatial = spatial; }
public GroupByField(QueryFieldName name, GroupByArrayBehavior byArrayBehavior, string alias) { Name = name; GroupByArrayBehavior = byArrayBehavior; Alias = alias; }
public AutoIndexField() { Indexing = AutoFieldIndexing.Default; Storage = FieldStorage.No; GroupByArrayBehavior = GroupByArrayBehavior.NotApplicable; }
public static DynamicQueryMappingItem CreateGroupBy(QueryFieldName name, GroupByArrayBehavior groupByArrayBehavior, bool isSpecifiedInWhere, bool isFullTextSearch, bool isExactSearch) { return(new DynamicQueryMappingItem(name, AggregationOperation.None, groupByArrayBehavior, isSpecifiedInWhere: isSpecifiedInWhere, isFullTextSearch: isFullTextSearch, isExactSearch: isExactSearch, hasHighlighting: false, spatial: null)); }