Thanks for the answer.
I do use a FSDirectoryProvider, and I configured its base directory. When I go in one of the subdirectoriez containing the indexes with Explorer, I do see many files being created, updated, and increasing in size as long as the application does its work. When I quit the application, the files are still there. The problem occur when I launch the application again : the files disappear, and instead I find two little files which seems to be empty indexes.
It seems to me that hibernate search or lucene doesn't like its old indexes and replace them with new, cleaner ones, yet I don't see why.
edit : here is more info :
the new files created at launch are named "segments.gen" and "segments_12r".
When I try to open the index with Luke, I get an error : "invalid or corrupted index".
Still, if I reindex manually the database, with session.index(), I do have a correct index that I can open and read with Luke.
my config for hibernate search is :
Code:
# the default directory provider
hibernate.search.default.directory_provider org.hibernate.search.store.FSDirectoryProvider
# the default base directory for the indecies
hibernate.search.default.indexBase = .focus_search_indexes