Empty Placeholder Extraction

Created on 25 October 2024, 21 days ago

Problem/Motivation

When a file does not exist, we still add the empty string as a value for the field. Solr then adds the placeholder text which results in "aöbäcüdöeäfüg" being added to the index. In our case, we aggregate multiple search attachment fields together which results content being wrapped with this placeholder.

Proposed resolution

We add a simple check to see if the $extraction is not empty, and only add if it contains some type of output.

if (!empty($extraction)) {
     $field->addValue($extraction);
}
🐛 Bug report
Status

Active

Version

9.0

Component

Code

Created by

🇺🇸United States j-barnes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024