I have a domain object model as shown below ...
@document
Profile
{
**social profile list:**
SocialProfile
{
**Interest list:**
{
Interest
{
id
type
value
}
...
}
...
}
Each profile can have many social profiles, in each social profile there are many interests associated with the profile, through a specific social profile (a social profile is a social network, such as Facebook), each interest is an embedded document with fields id, type, value.
I have two questions. Can I index several fields separately in the document of interest? can i create a composite index in an embedded document?
I assume that the complexity in my model is the deep level of the embedded document, which is 2 .. and that the path to this document is through arrays ...
spring ? , , , mongo