lucene index not getting sync when any update occurs in DB through hibernate

前端 未结 1 643
不思量自难忘°
不思量自难忘° 2021-02-10 07:45

I am working on some POC stuff on Hibernate Search based on Lucene using below env:

  • hibernate-search-engine-4.4.2.Final.jar
  • lucene-core-3
相关标签:
1条回答
  • 2021-02-10 08:02

    Try By adding the

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "userId", nullable = false)
    @ContainedIn
    public User getUser() {
       return user;
    }
    
    0 讨论(0)
提交回复
热议问题