|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchEngineOptimizer
Optimizes search engine index data.
Using it, one can controll the lifecycle of the optimizer using thestart() and stop() methods (note that does not
mean that it will start a scheduled optimizer, it depends on the
configuration supplied).
You can also check if the search engine required optimization using the
needOptimization() method, and run the optimization process
using the optimize() method.
| Method Summary | |
|---|---|
boolean |
isRunning()
Returns true if the optimizer is running. |
boolean |
needOptimization()
Returns true if the search engine index requires
optimization (depends on the optimizer configured). |
boolean |
needOptimization(String subIndex)
Returns true of the sub index requires optimization
(depends on the optimizer configured). |
void |
optimize()
Optimizes the search engine index if it requires optimization. |
void |
optimize(String subIndex)
Optimizes the sub index if it requires optimization. |
void |
start()
Starts the given optimizer. |
void |
stop()
Stops the given optimizer. |
| Method Detail |
|---|
void start()
throws SearchEngineException
SearchEngineException
void stop()
throws SearchEngineException
SearchEngineExceptionboolean isRunning()
true if the optimizer is running.
true if the optimizer is running
boolean needOptimization()
throws SearchEngineException
true if the search engine index requires
optimization (depends on the optimizer configured).
true if the search engine index requires optimization
SearchEngineException
boolean needOptimization(String subIndex)
throws SearchEngineException
true of the sub index requires optimization
(depends on the optimizer configured).
subIndex - The sub index to check if needs optimization
true if the sub index requires optimization
SearchEngineException
void optimize()
throws SearchEngineException
SearchEngineException
void optimize(String subIndex)
throws SearchEngineException
subIndex - The sub index to optimize
SearchEngineException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||