]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Feature] elastic: structured fuzzy results and message size
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
Sun, 26 Jul 2026 17:45:19 +0000 (19:45 +0200)
committerDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
Sun, 26 Jul 2026 17:45:19 +0000 (19:45 +0200)
commit2fbbb4daa7de3da700a91dc426cf547e89ee3090
tree9dae2a0ae6214813490a6bc33794c5318289a812
parent4798a429857a8e5b09df2160046e503175de2e4f
[Feature] elastic: structured fuzzy results and message size

- `fuzzy`: replace flat `fuzzy_hashes` with per-match objects from `task:get_fuzzy_results()`
  (rule, symbol, found, queried, type, prob, flag, exact); `fuzzy_nested` toggles nested type
- `size`: `task:get_size()`, requested in #6136

 #6147 added `size` to the document only, but `rspamd_meta` is `dynamic: true`, so without
the mapping the type is inferred per index instead of declared.

Signed-off-by: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
src/plugins/lua/elastic.lua