I’d like to be able to add an arbitrary query along with any filters and search that my react-instantsearch app is producing, kind of like a VirtualWidget, but in no way should it override or interact with any other part of the app.
Perhaps better explained with my use case:
I have products with start dates and end dates, I’d like to guarantee that no search will ever return a hit with a start date < today’s date. However, I also need people to be able to use widgets to search by start and end date. So my query should end up looking like this pseudocode:
... where startDate >= today [and startDate = someDate]...
So if dates are selected by the user or not, the
startDate is always filtered to get dates in the future.
If I add a VirtualWidget specifying this, it overrides my actual date picker widget since it’s working on the same part of the instantsearch query rather than the actual query sent to the server.