In November 2014 the #2294645: Support aggregate fields patch get committed into search_api_solr_et, but there is no way to specify when an aggregated field (or in general when a fulltext field) should or should not be indexed as "translatable".

Patch attached (will follow a subsequent patch also to search_api_solr_et, following #2294645: Support aggregate fields )

The following patch adds such possibility to FullText aggregated fields (when SearchAPI ET is enabled). The patch is for search_api since it seems impossible to alter the aggregate_field form permanently: using hook_form_alter() a new select form item can be added, but its configuration is lost after saving.

Comments

thepanz’s picture

drunken monkey’s picture

Component: Framework » Plugins
Category: Bug report » Support request
Status: Active » Fixed

No, definitely not, sorry. I won't add such specific code to the Search API, which is a framework module above all.
However, it seems your problem could easily be solved by overriding the plugin class for the "Aggregated fields" data alteration? Maybe that could just happen in the Search API ET module.

thepanz’s picture

Yes, you're right.
Do you have any pointers to such class overriding technique you suggest to apply?
Thank a lot! :)

Status: Fixed » Closed (fixed)

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

thepanz’s picture

Project: Search API » Search API Entity Translation
Version: 7.x-1.x-dev » 7.x-2.x-dev
Component: Plugins » Code
Category: Support request » Feature request
Status: Closed (fixed) » Active

Issue moved to "SearchAPI ET" (was on "SearchAPI").
Patch removed, since it's not correct anymore.

thepanz’s picture

Status: Active » Needs review
StatusFileSize
new2.48 KB

Patch re-roll.
Implemented using class override.

thepanz’s picture

StatusFileSize
new2.52 KB

Minor notice message fixes.

thepanz’s picture

StatusFileSize
new2.67 KB

Patch rerolled against latest 2.x-dev

thepanz’s picture

Removed wrong patch, file from comment #7 works with current 2.x-dev branch.