git.iko.soy/typeable/bloodhound
on c5603ff help sign in
src/Database/Bloodhound/Internal/Aggregation.hs−8
since splitsnapshots
unifiedsplit
@@ -27,7 +27,6 @@ mkAggregations name aggregation = M.insert name aggregation emptyAggregations
27
27
28data Aggregation = TermsAgg TermsAggregation
28data Aggregation = TermsAgg TermsAggregation
29 | CardinalityAgg CardinalityAggregation
29 | CardinalityAgg CardinalityAggregation
30− | MaxAgg MaxAggregation
31 | DateHistogramAgg DateHistogramAggregation
30 | DateHistogramAgg DateHistogramAggregation
32 | ValueCountAgg ValueCountAggregation
31 | ValueCountAgg ValueCountAggregation
33 | FilterAgg FilterAggregation
32 | FilterAgg FilterAggregation
@@ -59,9 +58,6 @@ instance ToJSON Aggregation where
59 ]
58 ]
60 ]
59 ]
61
60
62− toJSON (MaxAgg (MaxAggregation field)) =
63− object ["max" .= omitNulls [ "field" .= field ]]
64−
65 toJSON (DateHistogramAgg
61 toJSON (DateHistogramAgg
66 (DateHistogramAggregation field interval format
62 (DateHistogramAggregation field interval format
67 preZone postZone preOffset postOffset dateHistoAggs)) =
63 preZone postZone preOffset postOffset dateHistoAggs)) =
@@ -129,10 +125,6 @@ data CardinalityAggregation = CardinalityAggregation
129 precisionThreshold :: Maybe Int
125 precisionThreshold :: Maybe Int
130 } deriving (Eq, Show)
126 } deriving (Eq, Show)
131
127
132−data MaxAggregation = MaxAggregation
133− { maxField :: FieldName
134− } deriving (Eq, Show)
135−
136data DateHistogramAggregation = DateHistogramAggregation
128data DateHistogramAggregation = DateHistogramAggregation
137 { dateField :: FieldName
129 { dateField :: FieldName
138 , dateInterval :: Interval
130 , dateInterval :: Interval
src/Database/Bloodhound/Types.hs−1
@@ -372,7 +372,6 @@ module Database.Bloodhound.Types
372 , ValueCountAggregation(..)
372 , ValueCountAggregation(..)
373 , FilterAggregation(..)
373 , FilterAggregation(..)
374 , CardinalityAggregation(..)
374 , CardinalityAggregation(..)
375− , MaxAggregation(..)
376 , DateHistogramAggregation(..)
375 , DateHistogramAggregation(..)
377 , DateRangeAggregation(..)
376 , DateRangeAggregation(..)
378 , DateRangeAggRange(..)
377 , DateRangeAggRange(..)