|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.search.service.update.IndexUpdater
public class IndexUpdater
The IndexUpdater thread controls the update of existing search index. The update thread could be disabled with config parameter 'updateInterval=0'.
| Constructor Summary | |
|---|---|
IndexUpdater(java.lang.String indexPath,
long updateInterval)
|
|
| Method Summary | |
|---|---|
void |
addToIndex(org.apache.lucene.document.Document document)
Add new or changed index document to update-queue. |
void |
deleteFromIndex(org.apache.lucene.document.Document document)
Add index document to delete-queue. |
void |
run()
|
void |
startUpdater()
Start updater thread. |
void |
stopUpdater()
Stop update thread asynchron. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexUpdater(java.lang.String indexPath,
long updateInterval)
indexPath - Absolute file-path of existing index-directory which will be updatedupdateInterval - Updater sleeps this time [ms] between running again.| Method Detail |
|---|
public void addToIndex(org.apache.lucene.document.Document document)
document - New or changed index document.public void deleteFromIndex(org.apache.lucene.document.Document document)
document - Delete this index document.public void run()
run in interface java.lang.Runnablepublic void startUpdater()
public void stopUpdater()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||