Introduction - If you have any usage issues, please Google them yourself
Scoring mechanism in Lucene, also calculate a similarity problem, but it USES is the Angle between the vectors (cosine formula), in the Google blackboard: mathematical beauty (cosine theorem and classification of news) there are instructions, can be judged by cosine theorem similarity He decided to try myself