-
Notifications
You must be signed in to change notification settings - Fork 0
query_engine.cpp
makr-code edited this page Dec 21, 2025
·
1 revision
Stand: 5. Dezember 2025
Version: 1.0.0
Kategorie: Src
Path: src/query/query_engine.cpp
Purpose: Executes query plans, integrates BM25 scoring, vector search fusion, and result ranking.
Public functions / symbols:
if (!st.ok) {for (const auto& res : results) {if (!structStatus.ok) {for (const auto& pk : keys) {catch (...) { THEMIS_WARN("executeAndEntities: Deserialisierung fehlgeschlagen für PK={}", pk); }- ``
for (auto& batch : batches) {catch (...) { THEMIS_WARN("executeOrEntitiesWithFallback: Deserialisierung fehlgeschlagen für PK={}", pk); }for (size_t i = start; i < end; ++i) {catch (...) { THEMIS_WARN("executeOrEntities: Deserialisierung fehlgeschlagen für PK={}", pk); }if (!st0.ok) { child.setStatus(false, st0.message); return {Status::Error("sequential: " + st0.message), {}}; }if (!st.ok) { child2.setStatus(false, st.message); return {Status::Error("sequential: " + st.message), {}}; }catch (...) { THEMIS_WARN("executeAndEntitiesSequential: Deserialisierung fehlgeschlagen für PK={}", pk); }catch (...) { /* Silent failure in parallel context */ }for (const auto& p : q.predicates) {if (!v || *v != p.value) { match = false; break; }if (match) {for (const auto& r : q.rangePredicates) {if (!v) { match = false; break; }if (eff < bestEst) { bestEst = eff; bestIdx = i; bestCapped = capped; }if (!st.ok) { span.setStatus(false, st.message); return {st, {}}; }if (optimize) {catch (...) { THEMIS_WARN("executeAndEntitiesWithFallback: Deserialisierung fehlgeschlagen für PK={}", pk); }static inline size_t bigLimit() { return static_cast<size_t>(1000000000ULL); }if (r.column == ob.column) { lb = r.lower; ub = r.upper; il = r.includeLower; iu = r.includeUpper; break; }for (const auto& k : scan) {catch (...) { THEMIS_WARN("executeAndEntitiesRangeAware_: Deserialisierung fehlgeschlagen für PK={}", pk); }if constexpr (std::is_same_v<T, std::nullptr_t>) {for (const auto& [key, valExpr] : objConst->fields) {for (const auto& elemExpr : arrLit->elements) {if (name == "bm25") {if (name == "fulltext_score") {static void collectVariables(for (const auto& arg : fn->arguments) {for (const auto& elem : arr->elements) {for (const auto& [key, val] : obj->fields) {if (equiJoin.found) {for (const auto& filter : build_filters->second) {for (const auto& filter : probe_filters->second) {for (const auto& build_doc : it->second) {for (const auto& let : let_nodes) {for (const auto& filter : multi_var_filters) {if (bin->op == query::BinaryOperator::Eq) {if (return_node) {for (const auto& filter : push_filters->second) {for (const auto& filter : filters) {for (const auto& agg : collect->aggregations) {for (const auto& doc : docs) {for (const auto& node : reachableNodes) {if (node != q.start_node) {
Notes / TODOs:
- Document scoring fusion, BM25 parameterization, and how vector indices are invoked.
- Übersicht
- Home
- 📋 Dokumentations-Index
- 📋 Quick Reference
- 📊 Sachstandsbericht 2025
- 🚀 Features
- 🗺️ Roadmap
- Ecosystem Overview
- Strategische Übersicht
- Architektur
- Basismodell
- Storage & MVCC
- Indexe & Statistiken
- Query & AQL
- Caching
- Content Pipeline
- Suche
- Performance & Benchmarks
- Enterprise Features
- Qualitätssicherung
- Vektor & GNN
- Geo Features
- Sicherheit & Governance
- Überblick
- RBAC & Authorization
- RBAC
- Policies (MVP)
- Authentication
- Schlüsselverwaltung
- Verschlüsselung
- TLS & Certificates
- PKI & Signatures
- PII Detection
- Vault & HSM
- Audit & Compliance
- Security Audits & Hardening
- Competitive Gap Analysis
- Deployment & Betrieb
- Deployment
- Docker
- Tracing & Observability
- Observability
- Change Data Capture
- Operations Runbook
- Infrastructure Roadmap
- Horizontal Scaling Implementation Strategy
- Entwicklung
- Übersicht
- Code Quality Pipeline
- Developers Guide
- Cost Models
- Todo Liste
- Tool Todo
- Core Feature Todo
- Priorities
- Implementation Status
- Roadmap
- Future Work
- Next Steps Analysis
- AQL LET Implementation Guide
- Development Audit
- Sprint Summary (2025-11-17)
- WAL Archiving
- Search Gap Analysis
- Source Documentation Plan
- API Implementations
- Changefeed
- Security Development
- Development Overviews
- Publikation & Ablage
- Admin-Tools
- APIs
- Client SDKs
- Implementierungs-Zusammenfassungen
- Planung & Reports
- Dokumentation
- Release Notes
- Styleguide & Glossar
- Roadmap
- Changelog
- Source Code Documentation
- Übersicht
- Source Documentation
- Main
- Main (Detailed)
- Main Server
- Main Server (Detailed)
- Demo Encryption
- Demo Encryption (Detailed)
- API
- Authentication
- Cache
- CDC
- Content
- Geo
- Governance
- Index
- LLM
- Query
- Security
- Server
- Server README
- [VCCDB Design](src/server/VCCDB Design.md.md)
- Audit API Handler
- Auth Middleware
- Classification API Handler
- HTTP Server
- Keys API Handler
- PII API Handler
- Policy Engine
- Ranger Adapter
- Reports API Handler
- Retention API Handler
- SAGA API Handler
- SSE Connection Manager
- Storage
- Time Series
- Transaction
- Utils
- Archive