0
这里是我的文档类:春数据MongoDB的重载的复合索引的文本索引语言内场
@Document(language = "russian")
@CompoundIndexes({
@CompoundIndex(def = "{'tempId' : 1, 'persons.title' : 'text', 'otherPersons.title' : 'text'}", background = true)})
public class CompanyHistory implements Persistable<String> {
@Id
private String id;
private String tempId;
private List<Person> persons;
private List<OtherPerson> otherPersons;
...
}
Person
和OtherPerson
包含另一个两串,getteres,setter方法。
问题:在构建复合索引时如何覆盖内部字段的文本索引语言(默认为英语)?它看起来像设置language
只适用于@TextIndexed
注释。