fix(SearchDoc): Allow multiple conditions using joined table in WHERE clause (closes #4814)