It’s never worked properly for me. Granted, I have large folders, but it only indexes and returns about 10% of the actual results it should return, no matter what you search for. It doesn’t matter if you repair the folder, split the folder, narrow the range, search for different things. At least for certain searches, in certain configurations (apparently including mine) it just doesn’t work. And when you can’t trust it to work reliably, it’s essentially pointless. A search that misses large amounts of content is not a useful search, it’s barely even worth trying, it’s convenient enough to at least see if it manages to pick the lowest hanging fruit and find the message I’m looking for but since it’s not reliable it can only be at best the first step in a more arduous process of actually searching my email.
I usually just skip right to the most reliable (albeit inconvenient) step, and ssh into the server and use grep on the mailbox files. It’s messy and unpleasant but it works and it’s never missed a single match, which is more than I can say for Thunderbird search.