Add and/or query parser scaffolding
Created by: rvantonder
- Adds a site setting to activate a code path that uses the and/or query parser for input. The setting is not meant to be activated now, but later. Right now it's a way for me to develop against the code path.
- Adds an interim
type QueryInfo
which is an interface that either refers to our current query logic (type OrdinaryQuery
) ortype AndOrQuery
(which is the new part I'll be filling in).
I introduced typeQueryInfo
because it's going to be a real challenge for me to migrate the current query logic otherwise. We also want to preserve a fall back while transitioning. I've extracted the essential interface of Query
so that most dependencies on query-related things do not know what the underlying type is. Over time, I will be trimming/renaming the QueryInfo
interface. When we are ready to switch over to only AndOrQuery
, QueryInfo
will disappear, and AndOrQuery
will simply become Query
.