Save This Page
Home » hibernate-search-src-20081106 » org.hibernate » search » [javadoc | source]
org.hibernate.search
public interface: SearchFactory [javadoc | source]

All Known Implementing Classes:
    SearchFactoryImpl, SearchFactoryImplementor

Provide application wide operations as well as access to the underlying Lucene resources.
Method from org.hibernate.search.SearchFactory Summary:
getAnalyzer,   getAnalyzer,   getDirectoryProviders,   getReaderProvider,   optimize,   optimize
Method from org.hibernate.search.SearchFactory Detail:
 public Analyzer getAnalyzer(String name)
    Experimental API retrieve an analyzer instance by its definition name
 public Analyzer getAnalyzer(Class clazz)
    Retrieves the scoped analyzer for a given class.
 public DirectoryProvider[] getDirectoryProviders(Class entity)
    Provide access to the DirectoryProviders (hence the Lucene Directories) for a given entity In most cases, the returned type will be a one element array. But if the given entity is configured to use sharded indexes, then multiple elements will be returned. In this case all of them should be considered.
 public ReaderProvider getReaderProvider()
    Provide the configured readerProvider strategy, hence access to a Lucene IndexReader
 public  void optimize()
    Optimize all indexes
 public  void optimize(Class entityType)
    Optimize the index holding entityType