I use Lucene to index user list in my application.
How can I sort the user search result by recent activity
Example:
Anna has just sent an email to Peter.
So when Anna Search with character “P”
Peter must be have high rank than Pill or Peo.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will need to constantly update the index with the recent activity (which unfortunately involves dropping & adding documents — Lucene does not have an “update” action for documents).