Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
888 changes: 773 additions & 115 deletions protogen/gen/opencloud/services/search/v0/search.pb.go

Large diffs are not rendered by default.

180 changes: 180 additions & 0 deletions protogen/gen/opencloud/services/search/v0/search.pb.web.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

157 changes: 157 additions & 0 deletions protogen/gen/opencloud/services/search/v0/search.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,67 @@
}
}
},
"v0AggregationOption": {
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "Required. The indexed field to aggregate on (for terms/range\naggregations) or to reduce (for metric aggregations)."
},
"size": {
"type": "integer",
"format": "int32",
"description": "Optional. Maximum number of buckets to return for a terms aggregation.\nIgnored for range and metric aggregations."
},
"bucketDefinition": {
"$ref": "#/definitions/v0BucketDefinition",
"description": "Optional. Controls bucket selection, ordering and filtering.\nIgnored for metric aggregations."
},
"subAggregations": {
"type": "array",
"items": {
"$ref": "#/definitions/v0AggregationOption"
},
"description": "Optional. Nested aggregations computed within each bucket of this\naggregation. On bleve, sub-aggregations are emulated by walking the\nmatched result set; on OpenSearch they translate to native composite\naggregations."
},
"metricKind": {
"$ref": "#/definitions/v0MetricKind",
"description": "Optional. When set, this aggregation is a scalar metric over `field`\nrather than a bucket aggregation; the corresponding AggregationResult\ncarries `value` instead of `buckets`."
}
}
},
"v0AggregationResult": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"buckets": {
"type": "array",
"items": {
"$ref": "#/definitions/v0Bucket"
}
},
"value": {
"type": "number",
"format": "double",
"description": "Scalar value for metric aggregations (metric_kind set on the\ncorresponding AggregationOption). Unset / zero for terms/range\naggregations."
},
"metricKind": {
"$ref": "#/definitions/v0MetricKind",
"description": "Echoes the metric_kind of the corresponding AggregationOption. Lets\nthe cross-space merge layer pick the right reducer."
},
"sum": {
"type": "number",
"format": "double",
"description": "Accumulators used exclusively for AVG during cross-space merges.\nA backend computes (sum, count) per bucket so the service layer can\nmerge them additively and emit `value = sum/count` only at the\noutermost collapse. Other metric kinds leave these unset."
},
"count": {
"type": "string",
"format": "int64"
}
}
},
"v0Audio": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -217,6 +278,63 @@
}
}
},
"v0Bucket": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"count": {
"type": "string",
"format": "int64"
},
"aggregationFilterToken": {
"type": "string"
},
"subAggregations": {
"type": "array",
"items": {
"$ref": "#/definitions/v0AggregationResult"
},
"description": "Nested aggregation results, one entry per sub_aggregation requested\non the parent AggregationOption."
}
}
},
"v0BucketDefinition": {
"type": "object",
"properties": {
"sortBy": {
"type": "string",
"description": "One of \"count\", \"keyAsString\", \"keyAsNumber\"."
},
"isDescending": {
"type": "boolean"
},
"minimumCount": {
"type": "integer",
"format": "int32"
},
"ranges": {
"type": "array",
"items": {
"$ref": "#/definitions/v0BucketRange"
},
"description": "Optional. When non-empty, the aggregation is computed over these numeric\nor date ranges instead of as a terms aggregation."
}
}
},
"v0BucketRange": {
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "At least one of `from` or `to` must be set. Both are string-encoded;\nnumeric bounds are decimal strings, dates use RFC3339."
},
"to": {
"type": "string"
}
}
},
"v0Entity": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -352,6 +470,17 @@
}
}
},
"v0MetricKind": {
"type": "string",
"enum": [
"METRIC_KIND_UNSPECIFIED",
"METRIC_KIND_SUM",
"METRIC_KIND_MIN",
"METRIC_KIND_MAX",
"METRIC_KIND_AVG"
],
"default": "METRIC_KIND_UNSPECIFIED"
},
"v0Photo": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -433,6 +562,13 @@
},
"ref": {
"$ref": "#/definitions/v0Reference"
},
"aggregations": {
"type": "array",
"items": {
"$ref": "#/definitions/v0AggregationOption"
},
"description": "Optional. Per-space aggregations (facets) to compute alongside the matches."
}
}
},
Expand All @@ -452,6 +588,13 @@
"totalMatches": {
"type": "integer",
"format": "int32"
},
"aggregations": {
"type": "array",
"items": {
"$ref": "#/definitions/v0AggregationResult"
},
"description": "Per-space aggregation results. The service layer merges these across\nspaces before returning them to the caller."
}
}
},
Expand All @@ -472,6 +615,13 @@
},
"ref": {
"$ref": "#/definitions/v0Reference"
},
"aggregations": {
"type": "array",
"items": {
"$ref": "#/definitions/v0AggregationOption"
},
"description": "Optional. Aggregations (facets) to compute alongside the matches."
}
}
},
Expand All @@ -491,6 +641,13 @@
"totalMatches": {
"type": "integer",
"format": "int32"
},
"aggregations": {
"type": "array",
"items": {
"$ref": "#/definitions/v0AggregationResult"
},
"description": "Aggregation results, one entry per requested aggregation."
}
}
}
Expand Down
Loading
Loading