Class FSDirectoryProvider

java.lang.Object
org.hibernate.search.store.FSDirectoryProvider
All Implemented Interfaces:
DirectoryProvider<FSDirectory>

public class FSDirectoryProvider extends Object implements DirectoryProvider<FSDirectory>
Use a Lucene FSDirectory. The base directory is represented by the property hibernate.search.default.indexBase or hibernate.search.<index>.indexBase. The former defines the default base directory for all indexes whereas the latter allows to override the base directory on a per index basis. <index> has to be replaced with the fully qualified classname of the indexed class or the value of the index property of the @Indexed annotation.

The actual index files are then created in <indexBase>/<index name>, <index name> is per default the name of the indexed entity, or the value of the index property of the @Indexed or can be specified as property in the configuration file using hibernate.search.<index>.indexName.

  • Constructor Details

    • FSDirectoryProvider

      public FSDirectoryProvider()
  • Method Details