The search will not include topics excluded by the build
expression.
It will include topics that are in the build but not in the
TOC.
The search is based on what is in the build, not what is in
the TOC.
Reread that, it does make sense!
Then check the results you are getting again.
Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.