I am trying to upgrade to Hibernate Search 6 since it seems quite easier to work with, but I find it difficult to configure the testing in Java. Anybody knows about any tutorials or anything? Maybee some known bugs with Spring boot 2?
I use Spring boot and @SpringBootTest and the autowired repository to store the testing data, i.e repository.save, but the indexes seems to be empty when I test, i.e nothing is found . I have updated my Hibernate search configuration values (spring.jpa.properties.hibernate.search.backend.indexes.default.directory.type) (so it is using the new version). I hopefully think I am missing some magic config so that Search will index my data.
1: Have tried to flush to index with
SearchSession searchSession = Search.session( entityManager );
2: Have tried to confgure Hiberante search in test to write
spring.jpa.properties.hibernate.search.backend.indexes.default.directory.type = local-heap
spring.jpa.properties.hibernate.search.schema_management.strategy = drop-and-create-and-drop
spring.jpa.properties.hibernate.search.synchronization.strategy = sync
Spring boot 2.4.5
Hibernate ORM 2.4.30.FINAL
Lucene search 6.0.3.Final