0

Is it possible somehow to search in String fields over @DBRef. I have this @Document:

public class DocumentFileVersion {

    @TextIndexed
    @DBRef
    private OtherObject otherObject

and I will search in String fields of otherObject. Is there any possibility to do that?

quma
  • 5,233
  • 26
  • 80
  • 146

1 Answers1

1

DBRef are designed to be queried by id reference only.

So it is not possible. You should rethink your schema structure.

s7vr
  • 73,656
  • 11
  • 106
  • 127