-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Independent facet labels and values #580
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Any ideas here? Still haven’t found what I’m looking for 🎶 |
Sorry for the delay. Are you using this with App Search? Or Elasticsearch? Or some other backend? I'm having trouble wrapping my head around your problem. I'm going to close this issue for now because I'm pretty sure the answer is "no, it's not possible", but feel free to add more color to the conversation, I might be missing something. |
Thanks @JasonStoltz – I guess you’re right. I was looking for a way to use objects (with label and value properties) for faceting. My use case is this:
What I wanted to do: Find a way to set season ID 123 as filter value internally, but display „Season 1981/82“ (or any other label from aggregations). Here’s my actual solution: Before rendering the search results page, I parse the params ( |
That's a really good point. Being able to handle this scenario would be really valuable, especially given i18n requirements. I actually think it'd be easy enough to add support for this use case to search-ui. I'm going to reopen this and handle it as a feature request. Good call, thanks for adding your explanation! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Following. This is a rather common requirement for us. |
Got it. For what it's worth, in the meantime, you should be able to create a "Custom" view for this. The process describing how to do this can be found in the Advanced guide. So it shouldn't be a total dead-end right now, but we could definitely make it easier in the future. |
Thanks Jason. In fact we did create a custom view, but like you say, it could be much easier. |
Dear community,
here’s an interesting case I have. I’d like to use
MultiCheckBox
facets for filtering.My facets aren’t string-only, but objects with ID and name field, because we do have some ambiguous labels:
I’d like to use the object’s ID for filtering, but use its name as label for
MultiCheckBox
facets.From what I’ve seen, I think that Search UI facets (except for range fields) only works with string-only (or other primitives) facets.
What is the intended way to go in such a case?
The text was updated successfully, but these errors were encountered: