Skip to content

Commit

Permalink
[product documentation] Fix index names (elastic#202265)
Browse files Browse the repository at this point in the history
## Summary

Follow-up of elastic#194379.

Turns out, the prefix for kibana system indices is `.kibana_*`, so our
indices were not considered as kibana system indices and causing
warnings when created, such as

```
Elasticsearch deprecation: 299 Elasticsearch-6db572c986d7e114b8b46f1d6f4169bed06717c5 "index name [.kibana-ai-product-doc-kibana] starts with a dot '.', in the next major version, index names starting with a dot are reserved for hidden indices and system indices"
Origin:kibana
```

This PR addresses it, by changing the product doc index names to follow
our system index pattern.
  • Loading branch information
pgayvallet authored and CAWilson94 committed Dec 12, 2024
1 parent 9e2e51f commit 162cde8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/packages/ai-infra/product-doc-common/src/indices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

import type { ProductName } from './product';

export const productDocIndexPrefix = '.kibana-ai-product-doc';
export const productDocIndexPattern = `${productDocIndexPrefix}-*`;
export const productDocIndexPrefix = '.kibana_ai_product_doc';
export const productDocIndexPattern = `${productDocIndexPrefix}_*`;

export const getProductDocIndexName = (productName: ProductName): string => {
return `${productDocIndexPrefix}-${productName.toLowerCase()}`;
return `${productDocIndexPrefix}_${productName.toLowerCase()}`;
};

0 comments on commit 162cde8

Please sign in to comment.