我想在我的Spring Boot应用程序中添加全文搜索功能,数据应该存储在SQL数据库中,我也读到不推荐使用ES作为主数据库。我想到的一种方法是:创建、更新和删除操作既可以在主SQL数据库上完成,也可以在ES中完成(我们可以使用Java High Level REST客户端),例如,当在SQL中插入一行时,我们也在ES中对其进行索引,然后使用Elasticsearch执行搜索。我想我们也可以使用Hibernate搜索。这是正确的方法吗
我有一个项目,我刚刚将其转换为SpringDataJPA。该项目使用Hibernate搜索,我需要一种方法来索引数据库中现有的(~1500万)条记录。因为我要处理如此多的记录,所以我不能使用Hibernate Search的MassIndexer,因为这会导致内存不足问题。fullTextSession.clear(); //free memory since the queue is processed}
transaction.
你好,我对Spring有问题,我可以与ElasticSearch连接,但是在创建存储库之后,我的程序停止工作,这是我的代码。提前感谢您帮助解决这个问题。org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'java.lang.Class<org.springframework.data.repository.Repositoryat org.springframework.web.context.ContextL
:v2 where e.id in :ids@Modifying(clearAutomatically = true)publicJpaTransactionManager
问题: 1)仅使用SpringDataJPA,如何做到这一点?(由于现有代码较大,自定义存储库不是一个选项),我们希望仅使用Springdata <e