materio_ai: dense vector field in the generated Solr configset (I1)

SolrConfigSubscriber listens to PostConfigFilesGenerationEvent (search_api_solr
4.x no longer calls hook_search_api_solr_config_files_alter) and appends the
knn_vector_1024 DenseVectorField (cosine, HNSW) and the knn1024_* dynamic field
(not stored). Solr 9.1 at least. Dependency on search_api_solr added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
This commit is contained in:
2026-11-17 09:41:33 +01:00
co-authored by Claude Opus 5.5
parent b93d791419
commit ce6124b707
4 changed files with 121 additions and 0 deletions
@@ -22,3 +22,9 @@ services:
class: Drupal\materio_ai\Vectorizer
arguments: ['@entity_type.manager', '@config.factory', '@queue', '@materio_ai.corpus_builder', '@materio_ai.embedding_client', '@materio_ai.embedding_storage']
Drupal\materio_ai\Vectorizer: '@materio_ai.vectorizer'
materio_ai.solr_config_subscriber:
class: Drupal\materio_ai\EventSubscriber\SolrConfigSubscriber
arguments: ['@config.factory']
tags:
- { name: event_subscriber }