|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IndexStorage
Defines the IndexStorage mechanism used
| Method Summary | |
|---|---|
void |
addReloadListener(IndexReloadListener indexReloadListener)
|
boolean |
centralIndexExists()
A fast method that checks if the index exists in the cluster without opening or loading the index. |
void |
closeIndexReader(org.apache.lucene.index.IndexReader indexReader)
This will close the index reader and release any locks |
void |
closeIndexSearcher(org.apache.lucene.search.IndexSearcher oldRunningIndexSearcher)
|
void |
closeIndexWriter(org.apache.lucene.index.IndexWriter indexWrite)
this will close the index reader and release any locks |
void |
doPostIndexUpdate()
perform all operations necessary after an update cycle |
void |
doPreIndexUpdate()
perform all operations before an update cycle |
void |
forceNextReload()
|
org.apache.lucene.analysis.Analyzer |
getAnalyzer()
Get an analyzer correct for the indexer being used. |
org.apache.lucene.index.IndexReader |
getIndexReader()
get an Index Reader for the IndexStorage type |
org.apache.lucene.search.IndexSearcher |
getIndexSearcher(boolean reload)
get an index searcher |
org.apache.lucene.index.IndexWriter |
getIndexWriter(boolean create)
get an index writer, and create if asked to |
long |
getLastLoad()
When the index was last loaded |
long |
getLastLoadTime()
The ammount of time (ms) that it took to load the index last time |
long |
getLastUpdate()
|
List |
getSegmentInfoList()
|
org.apache.lucene.store.Directory |
getSpellDirectory()
get the spell index directory |
boolean |
indexExists()
Does the index exist |
boolean |
isMultipleIndexers()
Returns true if its ok to allow multiple indexers to run at the same time The index storage may manage its own locks. |
void |
removeReloadListener(IndexReloadListener indexReloadListener)
|
void |
setRecoverCorruptedIndex(boolean recover)
if set to true the IndexStorageWill automatically attempt to recover a corrupted index Not all IndexStorage implementations can do this, |
| Methods inherited from interface org.sakaiproject.search.api.Diagnosable |
|---|
disableDiagnostics, enableDiagnostics, hasDiagnostics |
| Method Detail |
|---|
org.apache.lucene.index.IndexReader getIndexReader()
throws IOException
IOException
org.apache.lucene.index.IndexWriter getIndexWriter(boolean create)
throws IOException
create -
IOException
org.apache.lucene.search.IndexSearcher getIndexSearcher(boolean reload)
throws IOException
reload - force a reload of the searcher, if the implementation is caching a
searcher
IOException
void doPostIndexUpdate()
throws IOException
IOException
void doPreIndexUpdate()
throws IOException
IOExceptionboolean indexExists()
org.apache.lucene.analysis.Analyzer getAnalyzer()
void setRecoverCorruptedIndex(boolean recover)
long getLastUpdate()
List getSegmentInfoList()
void closeIndexReader(org.apache.lucene.index.IndexReader indexReader)
throws IOException
indexReader -
IOException
void closeIndexWriter(org.apache.lucene.index.IndexWriter indexWrite)
throws IOException
indexWrite -
IOExceptionboolean isMultipleIndexers()
void closeIndexSearcher(org.apache.lucene.search.IndexSearcher oldRunningIndexSearcher)
boolean centralIndexExists()
long getLastLoad()
long getLastLoadTime()
void addReloadListener(IndexReloadListener indexReloadListener)
indexReloadListener - void removeReloadListener(IndexReloadListener indexReloadListener)
indexReloadListener - void forceNextReload()
org.apache.lucene.store.Directory getSpellDirectory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||