Назначение
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>.
Поля
| Поле | Тип | Indexed | Stored | Analyzer | Source | Security |
|---|
<Field> | <type> | да/нет | да/нет | <analyzer> | <source> | <masking> |
Source Events
| Event | Version | Transform |
|---|
<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
- Create versioned index.
- Backfill from source.
- Validate counts/checksums.
- Atomically switch alias.
- Keep previous index until rollback window ends.
Обратные ссылки
Автоссылки: где используется этот документ.