I'm configuring intranet search page. One of the requirements of this project is that users can get the search result only in their department's data. I have "user id" & "dept id" fields but dont know how to show only for their department's.
should I filter search result after search query or filter user/department first and send query? Please give me some advice.