How do I use FieldBridge in hibernate-search 6?

I am new for the hibernate search and wanted to know how we can convert below implementations in hibernate search 6 ?? Which type of bridge is more suitable in this case??
//ResourceAttributesBridge.java

@Override
public void set(final String name, final Object value, final Document document, final LuceneOptions luceneOptions) {

.....
.....

luceneOptions.addFieldToDocument(fieldName, item, document);
....    
    
}

/Resource.java

public class Resource {

 .......
 .......

@MapKeyColumn(name = "attribute_name")
@Column(name = "attribute_value", nullable = false, length = 5000)
@Field(bridge = @FieldBridge(impl = ResourceAttributesBridge.class))

@Convert(attributeName = "value", converter = JSONObjectConverter.class)
@EqualsAndHashCode.Exclude
@ToString.Exclude
@OptimisticLock(excluded = true)
private Map<String, JSONObject> attributes;

......
.......
}

Closing as duplicate of stackoverflow question: Unable to find below classes in hibernate-search 6 - Stack Overflow