|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchFactory
Provide application wide operations as well as access to the underlying Lucene resources.
| Method Summary | |
|---|---|
QueryContextBuilder |
buildQueryBuilder()
|
Analyzer |
getAnalyzer(Class<?> clazz)
Retrieves the scoped analyzer for a given class. |
Analyzer |
getAnalyzer(String name)
Retrieve an analyzer instance by its definition name |
DirectoryProvider[] |
getDirectoryProviders(Class<?> entity)
Provide access to the DirectoryProviders for a given entity. |
ReaderProvider |
getReaderProvider()
|
Statistics |
getStatistics()
Retrieve the statistics instance for this factory. |
void |
optimize()
Optimize all indexes |
void |
optimize(Class entityType)
Optimize the index holding entityType |
| Method Detail |
|---|
ReaderProvider getReaderProvider()
DirectoryProvider[] getDirectoryProviders(Class<?> entity)
entity - the entity for which to return the directory providers
DirectoryProviders for the specified entityvoid optimize()
void optimize(Class entityType)
entityType
entityType - the entity type (index) to optimizeAnalyzer getAnalyzer(String name)
name - the name of the analyzer
SearchException - if the definition name is unknownAnalyzer getAnalyzer(Class<?> clazz)
clazz - The class for which to retrieve the analyzer.
IllegalArgumentException - in case clazz == null or the specified
class is not an indexed entity.QueryContextBuilder buildQueryBuilder()
Statistics getStatistics()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||