Posted on 14/12/2021 21:45:30
We support millions of products - and sort by price or do price filtering with live prices while searching for something would take a long time and make your ERP server go into flames. Though it would look awesome, we do not support it. We simply cannot implement that in a way that can work...
Even with just 1000 products in a search, this would be impossible with just a little performance. Also to do facets and filtering, the values have to be in the index - and if prices are live that is not possible. If the values are not in the index, we would have to retrieve the entire search result, calculate all prices, sort and filter the result and then render the 30-ish products on that given page. It would be possible for search results with few products, but does not scale.
The best option is to import base prices on the products and let them be indexed and use them as an indicative price facet.
If you really want full customer specific price filtering, you need to calculate the price for each product and customer/customer group and add that to the index at index time. Then add an extension that will be able to do the filtering on the search against the index...
If you have any great suggestions that could work, please share.
BR Nicolai