Correct filter for searchdoc and generic_search (refs #4069)
    + Correct rule for ')'
    + Add check for filter in generic_search
    + Add TOFU
Merge pull request #901 from thingthing/3.2-I4069

Correct filter for searchdoc and generic_search (closes #4069)