Query strategy for stateful event timeseries

As I described in this recent post, you might be able to achieve this by creating a separate wedges-centric index and index your data twice. In your current index you store all the individual state changes while you in the widget-centric index store only the current state of each widget, where each change results in an update.