According to the section “Indexing null embeddeds”, using indexNullAs should work, but when I inspect the index, using Luke, it doesn’t index null Sets.
Does it only work when it’s a single entity? Will it work in cases like this, from the MainEntity?:
@ContainedIn @IndexedEmbedded(depth = 1, prefix = "mainEntity_", indexNullAs="nullToken") @OneToMany(mappedBy = "mainEntity", fetch = FetchType.LAZY) private Set<Child> children;