|
||||||||||
| 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()
|
org.apache.lucene.analysis.Analyzer |
getAnalyzer(Class<?> clazz)
Retrieves the scoped analyzer for a given class. |
org.apache.lucene.analysis.Analyzer |
getAnalyzer(String name)
Retrieve an analyzer instance by its definition name |
IndexReaderAccessor |
getIndexReaderAccessor()
Provides access to the IndexReader API |
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 |
|---|
void optimize()
void optimize(Class entityType)
entityType
entityType - the entity type (index) to optimizeorg.apache.lucene.analysis.Analyzer getAnalyzer(String name)
name - the name of the analyzer
SearchException - if the definition name is unknownorg.apache.lucene.analysis.Analyzer 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()
IndexReaderAccessor getIndexReaderAccessor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||