As you know, in spring data JPA, we can use @Table(indexes) to create indexes:
@Entity
@Table(name = "a", indexes = {
@Index(name = "name_idx", columnList = "name", unique = false) })
public class A {
@Id
@Column(name = "id")
private Integer id;
@Column(name = "name", length = 50)
private String name;
'''other columns and methods'''
}
But it seems that we can't specify the index type, so is there a solution that we specify one column to a FULLTEXT index?