예제 #1
0
        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));
        }
예제 #2
0
 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;
 }
예제 #3
0
 public GroupByField(QueryFieldName name, GroupByArrayBehavior byArrayBehavior, string alias)
 {
     Name = name;
     GroupByArrayBehavior = byArrayBehavior;
     Alias = alias;
 }
예제 #4
0
 public AutoIndexField()
 {
     Indexing             = AutoFieldIndexing.Default;
     Storage              = FieldStorage.No;
     GroupByArrayBehavior = GroupByArrayBehavior.NotApplicable;
 }
예제 #5
0
 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));
 }