I've used faceting for years in multiple search products and I've always
run into the following problem.
If I've a document like:
status_name: "Super Awesome"
I can facet this document on status_id, then give my users a link to filter
by it, appending a status_id=1 to the URL, for example.
But I always have to make a choice. Facet by the computer-friendly id or
the human friendly name? I of course want to show the user the
status_name, but it's not really appropriate for use in the URL.
If I change my document to:
name: "Super Awesome"
It seems I cannot simply say "facet on status" and get back the nested
object as a value.
What strategies do you guys use to solve this dilemma? Have I been
overlooking some painfully obvious mechanism to cleanly facet, provide
users with a friendly facet key and then specify a filter?*
- I'm trying to avoid getting back a list of "ids" and retrieving them from