Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn off indexing in hibernate search

I have hibernate search set-up and it's (re-)indexing my annotated entities up on commit just fine.

But I have a number of integration tests which have only partially initilzed data. Since this is throwing exceptions when hibernate search tries to index this objects, I'd prefer to completely switch off the indexing (or hibernate search) for this tests.

I already tried to not set hibernate.search.default.indexBase and hibernate.search.default.directory_provider for the tests. But this didn't help.

How can I switch off hibernate search indexing?

like image 892
BetaRide Avatar asked Dec 25 '22 16:12

BetaRide


1 Answers

set the hibernate.search.indexing_strategy configuration property to manual

for further reference, feel free to check the documentation here.

like image 160
kucing_terbang Avatar answered Dec 30 '22 10:12

kucing_terbang