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?

1 Answer 1

1

DBRef are designed to be queried by id reference only.

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.