Provide application wide operations as well as access to the underlying Lucene resources.
| 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()
|
public void optimize(Class entityType)
Optimize the index holding entityType |