Use SearchApiAiSearchBackend::getClientgetClient() and remove duplicate logic

Created on 31 July 2025, 6 days ago

Problem/Motivation

We have a method \Drupal\ai_search\Plugin\search_api\backend\SearchApiAiSearchBackend::getClient() that gets the vdb provider. However we repeat the same call to $this->vdbProviderManager->createInstance($this->configuration['database']) in multiple methods.

Steps to reproduce (required for bugs, but not feature requests)

Proposed resolution

Remove the duplication and call ::getClient().

Bonus points: consider renaming ::getClient() to ::getVectorDB() for readibility.

Remaining tasks

Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)

๐Ÿ“Œ Task
Status

Active

Version

1.2

Component

...to be triaged

Created by

๐Ÿ‡ฆ๐Ÿ‡บAustralia kim.pepper ๐Ÿ„โ€โ™‚๏ธ๐Ÿ‡ฆ๐Ÿ‡บSydney, Australia

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