Search is showing irrelevant results

After typing my search term, the interface shows me “Start typing to search 319 messages (showing 3 hits)”, but I’m actually seeing a few tens of hits, of which only two are relevant for the current folder.