open-notebook/open_notebook/database
Franco Nogarin 8d04447409
fix(search): order and limit after grouping in vector and text search (#1503)
fn::vector_search and fn::text_search grouped, ordered and limited in a single SELECT. SurrealDB returns grouped rows in group-key order, so ORDER BY was inert and LIMIT truncated an id-ordered list: notes crowded out better-scoring sources. Migration 26 groups first, then orders and limits over the grouped set, for both functions; 26_down restores the previous definitions. Regression tests assert both directions.

Fixes #1431
Fixes #1505

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 20:33:09 -03:00
..
migrations fix(search): order and limit after grouping in vector and text search (#1503) 2026-11-07 20:33:09 -03:00
async_migrate.py fix(search): order and limit after grouping in vector and text search (#1503) 2026-11-07 20:33:09 -03:00
migrate.py Api podcast migration (#93) 2025-07-17 08:36:11 -03:00
repository.py fix: error hints, Italian in the language menu and dev fallbacks (docs review) (#1457) 2026-10-04 22:51:31 -03:00