Hi,
I have a User entity containing a List of Roles. I'm Indexing the User and have a @IndexedEmbedded on the List<Role> attribute, and a @Field on the Role.name. In the generated User index I have multiple role.name fields for each role the user has.
I'd like to be able to perform a Projection search on the index which returns the role name values held in the index. Is this possible? I could just return the entities themselves, but I'd really prefer to return a Projection.
Any suggestions much appreciated.
Cheers,
Anton
|