We're using Find and are indexing prices for custom faceting/display. We're currently triggering a reindex when a price gets updated, but they have begun using the valid from / valid until properties more often and want to make sure the index is as up to date as possible at all times. Are there any events that trigger when a price becomes valid/invalid?
We are using Commerce 10.6.0.0, CMS 10.9.2.0, Find 184.108.40.206
To my knowledge there is no such event, just like there is no such event when content expires. Instead you probably want to index the valid from / until dates together with the price.
Tobias is correct, there is no such event. And it would be quite challenging doing so - figuring out which prices are obsolete can be very tricky.
There might be a smart (read, hacky) way to do, but how much do you want it?
Thanks Tobias and Quan.
I figured my best option is to index it, I was just hoping to do as little server side processing as possible and assume the Find index is correct.
This might be a way to solve it
Thanks for that. I believe we are going this route since indexing the dates with prices still leaves invalid data for the facets and the faceted results.