diff --git a/packages/compass-indexes/src/components/indexes/indexes.tsx b/packages/compass-indexes/src/components/indexes/indexes.tsx
index 35395784230..1f5f8cdf632 100644
--- a/packages/compass-indexes/src/components/indexes/indexes.tsx
+++ b/packages/compass-indexes/src/components/indexes/indexes.tsx
@@ -230,10 +230,17 @@ export function Indexes({
const getBanner = () => {
if (isReadonlyView) {
- if (
+ const viewVersionIncompatibleCompass =
!VIEW_PIPELINE_UTILS.isVersionSearchCompatibleForViewsCompass(
serverVersion
- )
+ ) && enableAtlasSearchIndexes;
+ const viewVersionIncompatibleDataExplorer =
+ !VIEW_PIPELINE_UTILS.isVersionSearchCompatibleForViewsDataExplorer(
+ serverVersion
+ ) && !enableAtlasSearchIndexes;
+ if (
+ viewVersionIncompatibleCompass ||
+ viewVersionIncompatibleDataExplorer
) {
return (
);
}
+
if (!isViewPipelineSearchQueryable) {
return (
Upgrade Cluster