esmero / strawberryfield

A Field of strawberries
GNU Lesser General Public License v3.0
10 stars 5 forks source link

Trigger a parent Node (or parent parent) Index tracker update on last sequence of a SBF + Computed field #244

Closed DiegoPino closed 1 year ago

DiegoPino commented 1 year ago

What?

We need to aggregate Strawberry Flavors at the ADO level for unified search to happen (performance reasons means a subquery is a bad idea given how Drupal Views work related to Search API functionality...)

The idea is basic. An ADO Solr Document is ready way before all their Flavor Children are ready. So we need a performant way (means not on every Child generation) to tell Solr that the parent needs to be reindexed so it can gather all the little children at once.

This also means we need a Computed (global field?) That does the gathering: Two options:

DiegoPino commented 1 year ago

Solved via https://github.com/esmero/strawberryfield/commit/3a8f0374567ba38b1ae0fd52ed241b0de962a2a6