'HSEARCH700061: Unable to index-embed type 'java.lang.String':

Can someone please help us why we are getting below exceptions in hibernate-search 6?

failures: 
              - HSEARCH700061: Unable to index-embed type 'java.lang.String': no index mapping (@GenericField, @FullTextField, custom bridges, ...) is defined for that type.

and

HSEARCH400520: Duplicate index field definition: 'users'. Index field names must be unique. Look for two property mappings with the same field name, or two indexed-embeddeds with prefixes that lead to conflicting index field names, or two custom bridges declaring index fields with the same name.

I am using these two annotations together like:

@IndexedEmbedded
@GenericField
private Set<String> users;


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source