I am currently using Lucene. My requirement is like a facebook search box. Search for users and friends. But in my requirement, the user has privacy settings, such as name, location, email address, which are visible to everyone or only friends. It can show and hide these fields from friends and other community members.
I performed a simple search based on name, location and email address. But now I am changing the search based on privacy settings.
Here is my script ..
User A has privacy settings:
Name is displayed only to friends
Email is displayed to each of them Location is not displayed to anyone.
If User X enter the location of User A in the search field, then it should not be in the results. But if User X type Name of User A is in the search field, it should be displayed because user A did not restrict the name, and it is displayed to his friends in the privacy settings.
Can you guide me to the approach.
Let me know if I am not clearly writing my request.
I analyzed the following approaches,
1- Method of explanation IndexSearcher (the overall result will be achieved)
2- Investigated filters But could not get much
My approach:
Get result based on name
Get result set based on location
Get result set based on email address
3 , , . 3 .
- ? , . .