You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you tell me how to reproduce them and also check please, does my PR fix the problem?
Thank you for the fix. It DOES fix the issue.
However, I wouldn't use round(), just type casting to float instead 'original_price' => (float)$originalPrice
Or at least round with the higher precision: 'original_price' => round($originalPrice, 5)
I couldn't find "unpredictable results".
I gave an example with aggregation (aggs)
I don't know whether elasticsuite supports price range filter.
The thing is, we don't use all frontend features, only indexers. But we have our custom storefront that operates with es data.
Preconditions
No modification made to the module, no extensions that impact Elasticsuite functionality installed.
Magento Version : 2.3.4
ElasticSuite Version : 6.8.8
Environment : Magento in default mode, Ubuntu
Steps to reproduce
bin/magento indexer:reindex
Expected result
Nested property price.price (.original_price, .final_price etc.) should have float values
Actual result
Nested property price.price (.original_price, .final_price etc.) have string values
As the result, range filter and aggregation on price give unpredictable results.
POST /index_name/_search
If I add this
$indexData[$rowId]['price'][0]['price'] = (float)$indexData[$rowId]['price'][0]['price'];
Everything works as expected.
It seems that Elasticsuite does not perform types-casting on the data being saved to elasticsearch index.
The text was updated successfully, but these errors were encountered: