My setup:
Search_api + search_api_db server and a view for delivering results.
Entity translation for multilingual.
I'm using the highlighting processor to create an excerpt, but the excerpt is always in the 'original' node's language.
The following patch uses the current site language to create the excerpt field.
| Comment | File | Size | Author |
|---|---|---|---|
| search_api-highlight-excerpt-language.patch | 1.19 KB | thijsvdanker |
Comments
Comment #1
drunken monkeyThanks a lot for your patch! This really makes sense, of course we want to display the excerpt in the current language. It also seems it won't have any side effects for non-multilingual sites, as it will silently fall back to the original language for untranslated nodes.
I will leave open a few more days in case anyone else wants to review, but then I'll commit it.
Comment #2
drunken monkeyCommitted.
Thanks again!