Skip to content

Commit 54d05c1

Browse files
committed
ChangeLog
1 parent c686fd5 commit 54d05c1

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
All notable changes to this `laravel-elasticsearch` package will be documented in this file.
44

5+
## v5.5.1 - 2026-03-16
6+
7+
### Added
8+
9+
- `Schema::compileMapping()` — compile a Blueprint callback into its resulting ES mapping structure without creating the index. Useful for debugging and previewing what `mappingDefinition()` will produce.
10+
- `Grammar::compileMapping()` — public access to the Blueprint-to-properties compilation pipeline.
11+
12+
### Improved
13+
14+
- `elastic:re-index` mapping analysis now uses `getMappings()` + `compileMapping()` for a proper apples-to-apples comparison, replacing the manual tree-building approach. Correctly handles nested types with properties, multi-field types with sub-fields, and any combination at any depth.
15+
- `elastic:re-index` output uses `dataList` depth rendering for both "Fields to Update" and "Unmapped Fields", showing nested structures with proper indentation.
16+
17+
### Fixed
18+
19+
- `elastic:re-index` now correctly detects nested field mappings (e.g., `nested('tags')->properties(...)`) including their sub-fields and keyword sub-field changes.
20+
21+
**Full Changelog**: https://github.com/pdphilip/laravel-elasticsearch/compare/v5.5.0...v5.5.1
22+
523
## v5.5.0 - 2026-03-15
624

725
This release is compatible with Laravel 10, 11 & 12

tests/ReIndexCommandTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ function refreshIndex(string $index): void
8989
$schema->create('re_index_targets', function (Blueprint $index) {
9090
$index->keyword('status');
9191
$index->text('name');
92+
$index->nested('tags')->properties(function (Blueprint $nested) {
93+
$nested->text('key', hasKeyword: true);
94+
$nested->text('value', hasKeyword: true);
95+
});
9296
$index->date('created_at');
9397
$index->date('updated_at');
9498
});

0 commit comments

Comments
 (0)