From ac9956bf000348eae48482938a3b2302241b7431 Mon Sep 17 00:00:00 2001 From: Lars Date: Mon, 29 Dec 2025 10:16:51 +0100 Subject: [PATCH] Index und Anlage neues Feld in qdrant --- app/core/database/qdrant.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/core/database/qdrant.py b/app/core/database/qdrant.py index 163c210..d5ee7bd 100644 --- a/app/core/database/qdrant.py +++ b/app/core/database/qdrant.py @@ -3,7 +3,7 @@ FILE: app/core/database/qdrant.py DESCRIPTION: Qdrant-Client Factory und Schema-Management. Erstellt Collections und Payload-Indizes. MODULARISIERUNG: Verschoben in das database-Paket für WP-14. -VERSION: 2.2.1 +VERSION: 2.2.2 (WP-Fix: Index für target_section) STATUS: Active DEPENDENCIES: qdrant_client, dataclasses, os """ @@ -124,7 +124,7 @@ def ensure_payload_indexes(client: QdrantClient, prefix: str) -> None: Stellt sicher, dass alle benötigten Payload-Indizes für die Suche existieren. - notes: note_id, type, title, updated, tags - chunks: note_id, chunk_id, index, type, tags - - edges: note_id, kind, scope, source_id, target_id, chunk_id + - edges: note_id, kind, scope, source_id, target_id, chunk_id, target_section """ notes, chunks, edges = collection_names(prefix) @@ -156,6 +156,8 @@ def ensure_payload_indexes(client: QdrantClient, prefix: str) -> None: ("source_id", rest.PayloadSchemaType.KEYWORD), ("target_id", rest.PayloadSchemaType.KEYWORD), ("chunk_id", rest.PayloadSchemaType.KEYWORD), + # NEU: Index für Section-Links (WP-15b) + ("target_section", rest.PayloadSchemaType.KEYWORD), ]: _ensure_index(client, edges, field, schema)