Перейти к основному содержимому

Назначение

Elasticsearch document <SearchDocumentName> является rebuildable search projection для <feature/search use case>.

Index

ПолеЗначение
Index alias<alias>
Versioned index<index-vN>
Owner service<service>
Source of truth<entity/event>
Rebuild job<job>

Document Id И Routing

  • Document id: <tenantId:entityId>.
  • Routing key: <tenantId/brandId/entityId>.
  • Delete/tombstone behavior: <rule>.

Поля

ПолеТипIndexedStoredAnalyzerSourceSecurity
<Field><type>да/нетда/нет<analyzer><source><masking>

Source Events

EventVersionTransform
<event.name><version><transform>

Freshness

  • SLA: <FreshnessView category>.
  • Watermark: <offset/eventId/timestamp>.
  • Stale behavior: <show marker/fail closed>.

Security

  • Tenant/brand trimming выполняется до query execution.
  • PII fields: <none/list>.
  • Полнотекстовый поиск не индексирует secrets, tokens, full payment/KYC data.

Rebuild

  1. Create versioned index.
  2. Backfill from source.
  3. Validate counts/checksums.
  4. Atomically switch alias.
  5. Keep previous index until rollback window ends.

Обратные ссылки

Автоссылки: где используется этот документ.