pub fn refuse_several_window_selections(
resolved_time_ranges: &[ResolvedTimeRange],
query_kind: &'static str,
) -> Result<(), Error>Expand description
Refuses more than one window selection: a transform’s source must be its
index’s first property, so one index buckets exactly one field and no
index serves two resolved windows. Serving such a query would need a join
across two bucketed indexes, which the engine has no shape for.
query_kind names the query in the refusal (“query”, “ranked query”,
“having-range query”).
The documents index pick, the ranked dispatcher and the having dispatcher call it before they route a request, and a client calls it before sending one, so all of them refuse two windows by one rule in one text, which differs only by the query kind it names.