composer require brandembassy/elasticsearch-migrations
- BrandEmbassy\ElasticSearchMigrations\Migration\GenerateMigrationCommand
- BrandEmbassy\ElasticSearchMigrations\Migration\Configuration('[pathToDirectoryWhereMigrationsAreStored]')
- BrandEmbassy\ElasticSearchMigrations\Migration\Definition\Json\JsonMigrationParser
- BrandEmbassy\ElasticSearchMigrations\Migration\Definition\Json\JsonMigrationSerializer
- BrandEmbassy\ElasticSearchMigrations\Migration\Definition\DirectoryMigrationsLoader
- BrandEmbassy\ElasticSearchMigrations\Index\Mapping\BasicIndexMappingPartialUpdaterFactory
- BrandEmbassy\ElasticSearchMigrations\Migration\MigrationExecutor
php [yourConsoleAppScript] elastic-search:migrations:generate [indexType]
Fill propertiesToUpdate
field to define new mapping
{
"version": 1578674026,
"mappingType": "default",
"propertiesToUpdate": {
"someRandomFoo": {
"type": "keyword"
}
}
}
For example using another symfony command