Open popzip opened 8 years ago
The code may have been changed, but I believe this would be an enhancement. It was never intended to be a facet but rather a simple geoquery on MarkLogic. I would run each query on page load and use the estimate as a count?
Yup, that's an enhancement. I agree it would be useful.
Generating facets on geospatial regions isn't as simple as for other values. The standard approach is to use cts:geospatial-boxes(), but that won't match up well with the regions we have defined.
Options:
It's not terribly important - I can see the counts for the regions if I click on the checkbox. Would just be nice to know before clicking. I guess the reason you can't easily display although you can easily filter is due to the background query needed to get the count without doing the search?
Option 3 would work but probably a worse design in terms of being inflexible.
Correct. Given that the data set is so small, we can probably get away with doing the searches, though.
All other facets (EA Version, Companies, Features) display the count next to each facet option. Would be nice to have this for region as well. Not sure if bug or enhancement.