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.
@giani do you have the user's ID and dept ID values when you run the query?
With a subscription, you would typically accomplish this with document level security which allows you to build a filter template referencing user metadata (like ID and department) that applies to every query a user runs. See the docs on that here
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.