Commit Graph

12 Commits

Author SHA1 Message Date
Bart van Bragt e2e2d1428f feat: restructure index as parent-child documents with blue-green rebuilds
- Switch to ES parent/child join_field: discussion docs hold all metadata,
  post docs hold content only. Routing ensures parent and child land on the
  same shard. Removes the old flat-document approach where post data was
  duplicated onto every comment document.

- Add HasChildQuery with inner_hits so the best-matching post ID is
  surfaced as mostRelevantPost without a second DB query.

- Blue-green index rebuilds: --recreate writes into a timestamped pending
  index, --swap atomically promotes it via alias. Interrupted builds are
  resumable with --recreate --continue. --swap requires confirmation before
  proceeding.

- Index hidden posts; non-moderators are filtered at query time via
  is_hidden on the has_child clause. Core\Hidden and Core\Restored trigger
  re-indexing so moderators with post.hide can search hidden posts.
2026-04-09 23:30:57 +02:00
StyleCI Bot f8aa3dcf13
Apply fixes from StyleCI 2022-11-18 09:33:13 +00:00
Daniel Klabbers 9108553f09 add and vs or distinction, but partial isnt working in combination with the others yet 2022-01-06 12:58:50 +01:00
Daniel Klabbers b6ac018a56 fix partial matching 2022-01-03 16:53:45 +01:00
Daniel Klabbers 88b3e57d8f added weighting properly, also different for titles vs posts 2022-01-03 15:13:13 +01:00
Daniel Klabbers 013f5162c5 Revert "introduce wildcard, needs further testing"
This reverts commit 877533b43d.
2021-12-23 13:07:03 +01:00
Daniel Klabbers 0ee902b7b7 Revert "allow minimum should match config"
This reverts commit d5eebf6c65.
2021-12-23 13:06:56 +01:00
Daniel Klabbers d5eebf6c65 allow minimum should match config 2021-12-16 15:05:22 +01:00
Daniel Klabbers 877533b43d introduce wildcard, needs further testing 2021-12-14 16:35:16 +01:00
Daniel Klabbers 77c406c07f improve scoring by boosting titles, now also major 2021-11-10 16:52:53 +01:00
Daniel Klabbers 4130e49bee wip 2021-10-15 13:51:36 +02:00
Daniel Klabbers c9a0407f47 commit before i lose this beauty 2021-10-14 14:41:35 +02:00