@Indexed
public class Event implements Serializable {
@DocumentId
private Long id;
@Field
@AnalyzerDiscriminator(impl = LanguageDiscriminator.class) // "de", GermanAnalyzer
private String lang;
@IndexedEmbedded
private User user;
}
@Indexed
@Analyzer(impl = GermanAnalyzer.class)
public class User implements Serializable {
@DocumentId
private Long id;
@Field
private String firstName;
}
firstName 字段会在索引 User 中分析,不会在索引 Event 中分析。这是正确的行为吗?