{"record":{"id":"3c1b43577cd0dd82","repo":"quickwit-oss/quickwit","slug":"filter-aggregation-is-not-yet-supported-in-quickwi","errorCode":null,"errorMessage":"filter aggregation is not yet supported in quickwit","messagePattern":"filter aggregation is not yet supported in quickwit","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"quickwit/quickwit-query/src/aggregations.rs","lineNumber":216,"sourceCode":"    fn from(value: TantivyBucketResult) -> BucketResult {\n        match value {\n            TantivyBucketResult::Range { buckets } => BucketResult::Range {\n                buckets: buckets.into(),\n            },\n            TantivyBucketResult::Histogram { buckets } => BucketResult::Histogram {\n                buckets: buckets.into(),\n            },\n            TantivyBucketResult::Terms {\n                buckets,\n                sum_other_doc_count,\n                doc_count_error_upper_bound,\n            } => BucketResult::Terms {\n                buckets: buckets.into_iter().map(Into::into).collect(),\n                sum_other_doc_count,\n                doc_count_error_upper_bound,\n            },\n            TantivyBucketResult::Filter(_filter_bucket_result) => {\n                unimplemented!(\"filter aggregation is not yet supported in quickwit\")\n            }\n            TantivyBucketResult::Composite { buckets, after_key } => BucketResult::Composite {\n                buckets: buckets.into_iter().map(Into::into).collect(),\n                after_key,\n            },\n            TantivyBucketResult::MultiTerms {\n                buckets,\n                sum_other_doc_count,\n                doc_count_error_upper_bound,\n            } => BucketResult::MultiTerms {\n                buckets: buckets.into_iter().map(Into::into).collect(),\n                sum_other_doc_count,\n                doc_count_error_upper_bound,\n            },\n        }\n    }\n}\n","sourceCodeStart":198,"sourceCodeEnd":234,"githubUrl":"https://github.com/quickwit-oss/quickwit/blob/a39730c5cdcd1a4fe798403737ae293999ea21f8/quickwit/quickwit-query/src/aggregations.rs#L198-L234","documentation":"A `From<TantivyBucketResult>` conversion for Quickwit's BucketResult encountered an aggregation result variant that Quickwit cannot represent — the filter aggregation, which exists in Tantivy's result enum but is not implemented in Quickwit. The conversion itself is generic; the error signals an unsupported aggregation kind rather than malformed data.","triggerScenarios":"Thrown at quickwit/quickwit-query/src/aggregations.rs:216 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the filter aggregation from the search request and apply filtering via the query itself instead","Use a supported bucket aggregation (range, histogram, or terms)"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a39730c5cdcd1a4fe798403737ae293999ea21f8","analyzedAt":"2026-09-08T13:19:37.784Z","contentChangedAt":"2026-09-08T13:19:37.784Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}