magento1-vsbridge-indexer
magento1-vsbridge-indexer copied to clipboard
Indexing products fails with Magento 1.9
When I try to run the indexing with the vsf_tools.php I get this error . This happens for all products. But all other index are inserted perfectly
In this line https://github.com/DivanteLtd/magento1-vsbridge-indexer/blob/develop/src/app/code/community/Divante/VueStorefrontIndexer/Model/Elasticsearch/Indexer/Handler.php#L232
[1] => Array
(
[index] => Array
(
[_index] => vue_storefront_magento_10_1596536487
[_type] => product
[_id] => 6757
[status] => 400
[error] => Array
(
[type] => illegal_argument_exception
[reason] => mapper [attributes_metadata.options.value] of different type, current_type [long], merged_type [text]
)
)
)
Here is the print of the request that is sent
https://gist.github.com/sudarshann/793552c6d85e37d3a494e26c131bd6e7
Adding these fixed my issue
"attributes_metadata"=> [ "properties"=> [ "id"=> ["type"=> "integer"], "attribute_id"=> ["type"=> "integer"], "default_frontend_label"=> ["type"=> "text"], "is_visible_on_front"=> ["type"=> "text"], "is_visible" => ["type"=> "boolean"], "frontend_input"=> ["type"=> "text"], "is_user_defined"=> ["type"=> "boolean"], "is_comparable"=> ["type"=> "text"], "attribute_code"=> ["type"=> "text"], "options"=> [ "properties"=> [ "value"=> ["type"=> "text"], "label"=> ["type"=> "text"], "sort_order"=> ["type"=> "integer"], ] ] ], ],