When executing a Search API query that contains nested condition groups (e.g., an `AND` group containing another `AND` or `OR` group), the Qdrant provider throws the following error:
`InvalidArgumentException: Qdrant condition must have a "key" field in Drupal\ai_vdb_provider_qdrant\Plugin\VdbProvider\QdrantProvider->validateQdrantCondition()`

This happens because the `validateQdrantCondition()` method strictly expects a flat condition with a `key` property, but it is being passed a nested group structure (e.g., an array starting with `must`, `should`, or `must_not`).

I stumbled on this issue, using the ai relatted content module, which adds a condition to exclude the current node while doing a vector search to get related content.

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

stmh’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.

Status: Fixed » Closed (fixed)

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