Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
With entity_view()
, there is now an easy way to index the entity completely, like it would be displayed to a user. This might in many cases provide the most accurate search results and is therefore a good candidate for a future data alteration.
The plugin would probably just prompt the user to select a view mode and would then add a fulltext field with the complete viewed entity as HTML.
Pretty simple but potentially a great feature.
Comment | File | Size | Author |
---|---|---|---|
#3 | search_api.callback_add_viewed.patch | 4.9 KB | drunken monkey |
Comments
Comment #1
drunken monkeyComment #2
fagosubscribing, sounds neat.
Comment #3
drunken monkeyAttached is a first draft of this, which seems to work fine.
While testing this, I also found the bug #1081188: entity_view() for comments is broken.
Comment #4
drunken monkeyCommitted.
Comment #5
drunken monkey