Repository navigation
Fix Elasticsearch/OpenSearch field explosion with custom properties - #25627
Conversation
|
@gitar-bot can you review this PR |
I'll review this PR for you. The code review is being performed and results will be posted shortly. |
|
🔍 CI failure analysis for 2667201: Maven PostgreSQL CI has 3 AWS credential test errors (unrelated infrastructure issue). The 9 custom property persistence/search test failures from Playwright continue - all PR-related and critical.IssueMultiple CI jobs failing: maven-postgresql-ci (3 test errors), Test Report (aggregation failure), and continuing Playwright E2E failures. Root CauseA. Maven PostgreSQL CI - Unrelated Infrastructure Failure3 test errors in
Error: Why Unrelated: No AWS-related files modified in this PR. This is an infrastructure/environment configuration issue unrelated to custom property indexing changes. B. Custom Properties - CRITICAL PR-Related Failures (Ongoing)
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
|



Describe your changes:
Fixes field explosion issue when many custom properties are created by implementing flattened extension fields and typed custom properties.
What changed:
extensionfield fromobjecttoflattenedtype across all Elasticsearch mappings (145+ files)customPropertiesTypednested field with structured subfields for efficient querying:stringValue/textValuefor string propertieslongValue/doubleValuefor numeric propertiesstart/endfor time interval propertiesrefId/refName/refFqn/refTypefor entity reference propertiesflattened→flat_objectat runtimedynamic: falseto prevent field explosion inlifeCycle,votes, and other objectsWhy:
Testing:
SearchIndexFieldLimitIT.javaintegration test verifying field counts stay bounded with many custom propertiesType of change: