It seems we never ran into this, but in the course of #3547199: Allow the "Custom value" token property to be added to a specific datasource I noticed that if a processor defines both a datasource-specific and a datasource-independent property, and both are present on a specific item, \Drupal\search_api\Item\Item::getFields() will actually invoke $processor->addFieldValues() for that processor, potentially leading to duplicate field values.

The fix is simple enough but will also need a regression test.

Issue fork search_api-3552849

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

drunken monkey created an issue. See original summary.

drunken monkey’s picture

Status: Active » Needs review
Issue tags: +Vienna2025
drunken monkey’s picture

Assigned: drunken monkey » Unassigned
drunken monkey’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • drunken monkey committed 919540e6 on 8.x-1.x
    [#3552849] fix: Fixed bug when a processor defines both datasource-...

Status: Fixed » Closed (fixed)

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