Trying to index a simple relationship between a Person and a collection of Names. There are 2 issues:
1) The document containing the Person fields contains each name of that person TWICE. I think this may be affecting the score that the document receives.
2) The search results are not ordered correctly. If I have one person with only one name: "Sly Stallone" and other people with multiple names, out of which one contains only "Sly" or only "Stallone", the people with multiple names have a higher score than the person with only one name that matches the search perfectly.
Here's the original thread that started this issue:
I've attached a maven project which contains a test that fails.
Hibernate 3.5.1-Final, MySQL 5.1.6