marklogic-community / eauser-geomapper

TEACUP: MarkLogic-based visualization of where early access users are from
Other
1 stars 4 forks source link

No count on region facet #222

Open popzip opened 8 years ago

popzip commented 8 years ago

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.

kmcostel commented 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?

dmcassel commented 8 years ago

Yup, that's an enhancement. I agree it would be useful.

dmcassel commented 8 years ago

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:

popzip commented 8 years ago

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.

dmcassel commented 8 years ago

Correct. Given that the data set is so small, we can probably get away with doing the searches, though.