Commit 5dc39d1
committed
fix: support @indexed(alias) on nested Map fields for uppercase JSON 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.1 parent 4238522 commit 5dc39d1
File tree
7 files changed
+635
-7
lines changed- redis-om-spring/src/main/java/com/redis/om/spring
- indexing
- repository/query
- tests/src/test
- java/com/redis/om/spring
- annotations/document
- fixtures/document
- model
- repository
- resources/data
7 files changed
+635
-7
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
617 | 621 | | |
618 | 622 | | |
619 | 623 | | |
| |||
Lines changed: 25 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
412 | 415 | | |
413 | | - | |
| 416 | + | |
414 | 417 | | |
415 | 418 | | |
416 | 419 | | |
417 | | - | |
| 420 | + | |
418 | 421 | | |
419 | 422 | | |
420 | 423 | | |
| |||
436 | 439 | | |
437 | 440 | | |
438 | 441 | | |
439 | | - | |
440 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
441 | 451 | | |
442 | 452 | | |
443 | 453 | | |
| |||
470 | 480 | | |
471 | 481 | | |
472 | 482 | | |
473 | | - | |
| 483 | + | |
474 | 484 | | |
475 | 485 | | |
476 | 486 | | |
| |||
482 | 492 | | |
483 | 493 | | |
484 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
485 | 504 | | |
486 | 505 | | |
487 | 506 | | |
488 | 507 | | |
489 | | - | |
| 508 | + | |
490 | 509 | | |
491 | 510 | | |
492 | 511 | | |
| |||
0 commit comments