Skip to content

Conversation

bsbodden
Copy link
Collaborator

…handling

  • RediSearchIndexer now respects @indexed(alias) annotations on nested fields within Map value objects
  • RediSearchQuery properly handles aliases in MapContains queries and combined queries
  • Added comprehensive test coverage for uppercase JSON field mappings in Map complex objects
  • Fixes MapContains repository methods when JSON fields use different casing than Java fields

This enables proper querying of Map fields containing complex objects where the JSON structure uses uppercase field names (e.g., from external systems) while maintaining standard Java naming conventions through @JsonProperty and @indexed(alias) annotations.

…handling

- RediSearchIndexer now respects @indexed(alias) annotations on nested fields within Map value objects
- RediSearchQuery properly handles aliases in MapContains queries and combined queries
- Added comprehensive test coverage for uppercase JSON field mappings in Map complex objects
- Fixes MapContains repository methods when JSON fields use different casing than Java fields

This enables proper querying of Map fields containing complex objects where the JSON structure
uses uppercase field names (e.g., from external systems) while maintaining standard Java naming
conventions through @JsonProperty and @indexed(alias) annotations.
@bsbodden bsbodden merged commit 5dc89b5 into redis:main Sep 10, 2025
1 check passed
@bsbodden bsbodden deleted the bsb/map-mapping-with-uppercase-json branch September 10, 2025 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant