mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-12-05 14:04:08 +00:00
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> |
||
|---|---|---|
| .. | ||
| migrations | ||
| async_migrate.py | ||
| migrate.py | ||
| repository.py | ||