Alias Search Result (search by id )

Is there a way to facet by id, but display a combined value in the facet?

The facet object is { firstName: ‘Cool’, lastName: ‘Dude’, id: ‘2h80fg08g80g0cg8’}

For example, the facet would be “firstName lastName”. However, the field that would drive the facets would be, that way the data would be distinct.

Hey @banunn!

If you’re using a version of InstantSearch.js for your frontend, you can specify a template for how to show the facets on the frontend in the refinementList widget. You could then use the firstName and lastName attributes in that template

Docs about this: