I created many types of content (article, announcement, recipe). On a different type of content, I created a taxonomy field called tags.

On my node pages, I added in the sidebar, a view block (search api) to display other content.

In the context filter, I added "Full Text Search". How to search the taxonomy terms of the current page in the title and body of other content?

The goal is to use tags as keywords to search all my content (title and body).

Comments

zenimagine created an issue. See original summary.

drunken monkey’s picture

Status: Active » Fixed

Sorry, but I don't think this behavior is currently possible without custom code. It seems much too specific for that.
If you want to write custom code, you should probably add a new contextual filter plugin similar to \Drupal\search_api\Plugin\views\argument\SearchApiFulltext, but which uses the argument to instead load the node, get its tags and then use those for the search keywords.
(Doing the same in a hook_search_api_query_alter() would also be possible, but a lot less clean.)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.