I am working on a project where i would like to be able to create a search api view that has a relation to the referencing entity.
The use case:
I have a content type: Products page that holds the commercial information about the product
I then have a content type Product that holds all the specifics (article number, serial numbers etc)
I have created a search api view on the content type Products Page that shows all the commercial information in the catalog with some facets end an exposed full text search box.
Each product node has an entity reference to the Products page node it belongs to
Of course, i would like visitor to be able to search for article numbers in the fulltext search. The result needs to to show the Products Page node that is being referenced by the product node that holds the article number that was searched for.
However i cannot see how i can create the relation that you would normally use when using a regular view?
Addtionally and example below:
Products Page node: Chairs (with body and image) Product nodes: - Wooden chair (art nr 123, and entity ref to Chairs) - Metal chair (art nr 456, and entity ref to Chairs)
So when ppl search art nr 123, i want my view to show the Products page node "chairs".
Thanks in advance!