Skip to content

Commit

Permalink
Merge pull request #114 from Alfresco/BucketCount
Browse files Browse the repository at this point in the history
Added bucket count
  • Loading branch information
gl-lovekesh authored Dec 6, 2021
2 parents d84e18e + f7480fc commit d60e7b9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public struct GenericBucket: Codable {

/** The bucket label */
public var label: String?
/** The bucket count */
public var count: String?
/** The filter query you can use to apply this facet */
public var filterQuery: String?
/** An optional field for additional display information */
Expand All @@ -24,15 +26,14 @@ public struct GenericBucket: Codable {
public var facets: [JSONValue]?
public var bucketInfo: GenericBucketBucketInfo?

public init(label: String?, filterQuery: String?, display: JSONValue?, metrics: [GenericMetric]?, facets: [JSONValue]?, bucketInfo: GenericBucketBucketInfo?) {
public init(label: String?, count: String?, filterQuery: String?, display: JSONValue?, metrics: [GenericMetric]?, facets: [JSONValue]?, bucketInfo: GenericBucketBucketInfo?) {
self.label = label
self.filterQuery = filterQuery
self.display = display
self.metrics = metrics
self.facets = facets
self.bucketInfo = bucketInfo
self.count = count
}


}

0 comments on commit d60e7b9

Please sign in to comment.