sbp-flarum-search/src
Bart van Bragt c5643bed31 fix: default search sort to latest and keep dropdown label in sync
- Search with no explicit sort now defaults to latest (updated_at desc)
  on both backend and frontend, matching the forum UX expectation.
- "All discussions" link from the search box routes to /?q=...&sort=latest
  so the sort dropdown shows "Latest" immediately after submission.
- extendDiscussionState injects sort=-lastPostedAt into API params when
  no sort is present, keeping direct-URL navigation (?q=anan) consistent
  with the backend default.
- Backend guard changed from phpSortField===null to empty($sorts), which
  is the correct sentinel since $sorts is the authoritative ES sort list.
2026-04-15 17:21:10 +02:00
..
Api fix: default search sort to latest and keep dropdown label in sync 2026-04-15 17:21:10 +02:00
Commands fix: retry fill ES queries on transient connection failure 2026-04-15 14:07:43 +02:00
Elasticsearch fix: prevent ES CPU saturation from has_child scoring all posts 2026-04-14 16:07:50 +02:00
Exceptions Apply fixes from StyleCI 2022-11-18 09:33:13 +00:00
Jobs fix: report actual failed item error in bulk seeding exception 2026-04-15 14:08:04 +02:00
Save feat: restructure index as parent-child documents with blue-green rebuilds 2026-04-09 23:30:57 +02:00
Searchers Apply fixes from StyleCI 2022-11-24 09:38:21 +00:00
Seeders fix: index discussion on rename 2026-04-15 14:07:55 +02:00
Provider.php fix: prevent ES CPU saturation from has_child scoring all posts 2026-04-14 16:07:50 +02:00