php-enqueue / enqueue-dev

Message Queue, Job Queue, Broadcasting, WebSockets packages for PHP, Symfony, Laravel, Magento. DEVELOPMENT REPOSITORY - provided by Forma-Pro
https://enqueue.forma-pro.com/
MIT License
2.17k stars 430 forks source link

Problem mapping with option --pager-persister=queue #1268

Open kdakhli opened 2 years ago

kdakhli commented 2 years ago
    I'm using symfony 4.4 and I installed this:
    "enqueue/amqp-bunny": "^0.10",
    "enqueue/elastica-bundle": "^0.10",
    "enqueue/fs": "^0.10",
    "friendsofsymfony/elastica-bundle": "^5",

My problem, when I run the consumer it creates the indexes but it doesn't take the right mapping

when I run my command without the option --pager-persister=queue, I have this mapping : "aliases": { }, "mappings": { "dead": { "_meta": { "model": "App\Entity\Dead" }, "dynamic_date_formats": [ ], "properties": { .................... "publicationDate": { "fields": { "keyword": { "normalizer": "lower_case", "type": "keyword" } }, "type": "date" }

when I run my command with the --pager-persister=queue option, I have this mapping: "aliases": { }, "mappings": { "dead": { "properties": { ..................... "publicationDate": { "type": "date" }, thank you for your help