Hibernate search “join” on TextFullSearch
问题 I have 2 entities : Ad and Category; I have a FullTextSearch (lucene) on Ad entity and I want to make a "join" beetween Ad And Category or to add somehow a where clause on Ad.category.id . My Add class : @Entity @Indexed @Table(name = "adds") public class Ad implements Serializable { @Id @SequenceGenerator(name="AdSQ", sequenceName="AdSQ", allocationSize = 1) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AdSQ") @Column(name = "id") @JsonProperty("Id") private Long __Id;