I have the following entity in a Spring Boot project:
@Entity
@Getter
@Setter
@Table(name = "listings",
indexes = {
@Index(name = "idx_exposition_east", columnList = "exposition_east", unique = false),
@Index(name = "idx_exposition_north", columnList = "exposition_north", unique = false),
@Index(name = "idx_exposition_west", columnList = "exposition_west", unique = false),
@Index(name = "idx_exposition_south", columnList = "exposition_south", unique = false)
// some other indexes
},
uniqueConstraints = @UniqueConstraint(columnNames = {"source_id", "source_remote_id"})
)
public class ListingEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(name = "source_id", columnDefinition = "TINYINT", nullable = false)
private Byte sourceId;
@Column(columnDefinition = "VARCHAR(11)")
private String sourceRemoteId;
// some other columns
@Length(max = 20_000)
@Column(columnDefinition = "NVARCHAR(MAX)")
private String description;
}
Is there any way for me to mark the description filed with a full-text search index? I use Microsoft SQL Server.