次のようなエンティティがあるとします。
@Document(collection = "doc_a")
public class A {
@Field("id")
private Integer id;
@Field("b")
private Collection<B> b;
...
}
public class B {
@Field("id")
private Integer id;
...
}
A.id AND B.id に関して CompoundIndex を一緒に使用することは可能ですか?
つまり、次のようになります。
@CompoundIndex(name = "aid_bid_idx", def = "{'id', 'b.id'}")
前もって感謝します。