ai_search module is missing search_api as a dependency

Created on 27 January 2025, about 1 month ago

Problem/Motivation

When I am trying to enable `ai_search` module, I am getting error

Unable to install modules: module 'ai_search' is missing its dependency module search_api.

drupal/search_api is added to reuire-dev, but it should be in `drupal/search_api`

Steps to reproduce

composer require 'drupal/ai:^1.0'
drush en ai_search

Proposed resolution

Add `drupal/search_api` as a dependency to `require` in composer.json

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

AI Search

Created by

🇳🇱Netherlands euphoric_mv

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

Comments & Activities

  • Issue created by @euphoric_mv
  • 🇬🇧United Kingdom scott_euser

    It is as expected that it should prevent install until you composer require the Search API module. It is in require-dev so automated tests run but it is not a dependency of the AI module where the composer.json sits. Composer.json does not work in sub directories so we cannot put it as a require for the sub-module only unfortunately. A downside of using sub-modules but we believe the benefit of joining together efforts of what was previously a fairly fragmented community of AI related modules is worth these downsides.

Production build 0.71.5 2024