How to index department from one of the index where empId is same as loggedin user Id.
here allUsers stores Record data.
Discussion posts and replies are publicly visible