Well ... unfortunately it does not. At least not when the depth is more than one.
I have
Code:
Foo {
@IndexEmbedded(depth=2)
@Boost(2.0F)
Bar getMainBar();
@IndexEmbedded(depth=2)
@Boost(0.1F)
Set<Bar> getComplementaryBars();
}
Where Bar is like
Code:
Bar {
@IndexEmbedded(depth=2)
Set<Syn> getSynonyms();
}
And finally Syn is like
Code:
Syn {
@Field
getSynonym();
}
The generated indexes will show (when inspecting with Luke)
Code:
Field: mainBar.synonyms.synonym Boost:1.0
Field: compementaryBars.synonyms.synonym Boost:1.0
Expected result is:
Code:
Field: mainBar.synonyms.synonym Boost:2.0
Field: compementaryBars.synonyms.synonym Boost:0.1