Create, migrate, or query Elasticsearch indices in `front`. Use when adding a new front Elasticsearch index, changing mappings or settings, wiring indexing logic, or exposing Elasticsearch-backed analytics/search endpoints.
Use this skill when working on Elasticsearch-backed features in front. SKILL.md covers the
default path for routine work. You should only load the supporting references when you need deeper
material such as analyzer design, full curl verification, query recipes, or relocation details.
front/types/....
ElasticsearchBaseDocument for workspace-scoped indices instead of redeclaring
workspace_id.updated_at when backfills or version bumps are likely.front/lib/<feature>/indices/.
keyword for ids and enums, date for timestamps, numeric field types for metrics,
nested only when array element relationships matter, and text only when full-text search
is actually required.front/lib/api/elasticsearch.ts.
tsx front/scripts/create_elasticsearch_index.ts.
front.<index_name>_<version> behind alias front.<index_name>.${workspaceId}_${entityId} or an equivalent deterministic key.withEs(...) and client.index, client.update, or client.bulk.bool.filter.workspace_id for workspace-scoped indices.size: 0 for aggregation-only queries.front/temporal/es_indexation/* when the write path does not need
to block on Elasticsearch freshness.This skill focuses on Elasticsearch indices managed in front, especially analytics-style indices,
but the patterns also match the broader Dust Elasticsearch setup.
Current examples to copy from:
front.agent_message_analytics
2front.agent_message_analyticscore.data_sources_nodes
4core.data_sources_nodesThe general pattern is:
front.<index_name>_<version>front.<index_name> for app reads and writesfront/lib/api/elasticsearch.tsfront/scripts/create_elasticsearch_index.tsfront/lib/*/indices/*.mappings.jsonfront/lib/*/indices/*.settings.{region}.jsonfront/temporal/es_indexation/*front/temporal/relocation/activities/destination_region/front/es_indexation.tsfront/temporal/relocation/workflows.tsfront/lib/user_search/indices/front/lib/user_search/index.tsfront/lib/analytics/indices/core/src/search_stores/indices/data_sources_nodes_4.*INDEX_DIRECTORIES entry.workspace_id when the index is workspace-scoped.size: 0.