We have child items that have unique MPNs, but when searched for, we want to show their parent item as that’s what’s being displayed on our site. The user then selects the desired child item from a dropdown.
Is there a way to have the search result for these child MPNs be based on their _parentId (the parent item’s objectId)?
Items without a parent have their _parentId as false, and work as intended when searching for those MPNs.
Any advice would be greatly appreciated!
These sort of joins aren’t possible with Algolia’s prefix indices. Could you add the list of child MPNs as a searchable attribute on the parent record (
child_mpns: ) with a higher priority than
mpn? That way searches for the MPN should bring up the parent first.