Search API Referencing entity relations 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!
Implement hook_entity_property_info_alter()

function MY_MODULE_entity_property_info_alter(&amp;$info) {
    $info['node']['properties']['article_number'] = array(
        'type' =&gt; 'text',
        'label' =&gt; t('Article number'),
        'getter callback' =&gt; 'MY_MODULE_get_article_number',
    );
}

function MY_MODULE_get_article_number($node) {
    if ($node-&gt;type == 'product_page') {
        // Return the article number from the referenced product node
    }
}


Go to admin/config/search/search_api/index/{index_name}/fields and select the property. Now you can use this property like any other field.

In your case you need to configure this field in you view. I assume you added Search: Fulltext search to your filter criteria. Click on this filter and add the property to the Searched fields settings.

I hope this works for you.