Model
PriceMapper
Magento\OpenSearch\Model\Adapter\DynamicTemplates\PriceMapper
What it does
This class defines OpenSearch dynamic template mappings for price fields in Magento 2.
It ensures that price-related fields matching the pattern 'price_[number]_[number]' are automatically mapped as double (floating-point) data types in the search index, enabling proper numerical sorting and filtering of product prices across different customer groups and websites.
Public Methods
- processTemplates()