*/
@Test
public void shouldApplySortByScoreCorrectly() {
initWithDefaultDocuments();
FullTextDoc coffee2 = new FullTextDocBuilder().headline("coffee").build();
template.insert(coffee2);
List<FullTextDoc> result = template.find(new TextQuery("bake coffee cake").sortByScore(), FullTextDoc.class);
assertThat(result, hasSize(4));
assertThat(result.get(0), anyOf(equalTo(BAKE), equalTo(coffee2)));