|
||||||||||
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()
Return a query builder providing a fluent API to create Lucene queries |
org.apache.lucene.analysis.Analyzer |
getAnalyzer(java.lang.Class<?> clazz)
Retrieves the scoped analyzer for a given class. |
org.apache.lucene.analysis.Analyzer |
getAnalyzer(java.lang.String name)
Experimental API retrieve an analyzer instance by its definition name |
DirectoryProvider[] |
getDirectoryProviders(java.lang.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. |
ReaderProvider |
getReaderProvider()
Provide the configured readerProvider strategy, hence access to a Lucene IndexReader |
void |
optimize()
Optimize all indexes |
void |
optimize(java.lang.Class entityType)
Optimize the index holding entityType |
Method Detail |
---|
ReaderProvider getReaderProvider()
DirectoryProvider[] getDirectoryProviders(java.lang.Class<?> entity)
void optimize()
void optimize(java.lang.Class entityType)
entityType
org.apache.lucene.analysis.Analyzer getAnalyzer(java.lang.String name)
SearchException
- if the definition name is unknownorg.apache.lucene.analysis.Analyzer getAnalyzer(java.lang.Class<?> clazz)
clazz
- The class for which to retrieve the analyzer.
java.lang.IllegalArgumentException
- in case clazz == null
or the specified
class is not an indexed entity.QueryContextBuilder buildQueryBuilder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |