Closed roger-mahler closed 7 months ago
On second thought, this might be a policy in the query engine that is open for discussion. Should a facet, without picks, filter data in following facets based on the implicit constraint given by the facet's specification? Or should it be dormant as long as no user picks have been made? The implicit filtering seems obvious e.g. a facet "Sweden" with only Swedish sites, should filter out non-Swedish sites even if no selection is made.
Closing for now.
This unit test fails since number of constraints are higher than expected number.
https://github.com/humlab-sead/sead_query_api/blob/480545e64789dc6db80f813b13cc5a435c6d39b4/sead.query.test/UnitTests/QueryBuilder/QuerySetupBuilderTests.cs#L58
This is an old facet previously not exposed by the query engine. A reasonable behavior would be to enforce the constraint for all facets that are specified as a subset of the underlying source. Recent changes in the facet engine enables constraints to be enforced.