use of org.codelibs.fess.suggest.index.SuggestDeleteResponse in project fess by codelibs.
the class SuggestHelper method deleteQueryWords.
public boolean deleteQueryWords() {
final SuggestDeleteResponse response = suggester.indexer().deleteQueryWords();
if (response.hasError()) {
logger.warn("Failed to delete query words.", response.getErrors().get(0));
return false;
}
refresh();
return true;
}
use of org.codelibs.fess.suggest.index.SuggestDeleteResponse in project fess by codelibs.
the class SuggestHelper method deleteAllWords.
public boolean deleteAllWords() {
final SuggestDeleteResponse response = suggester.indexer().deleteAll();
if (response.hasError()) {
logger.warn("Failed to delete all words.", response.getErrors().get(0));
return false;
}
refresh();
return true;
}
use of org.codelibs.fess.suggest.index.SuggestDeleteResponse in project fess by codelibs.
the class SuggestHelper method deleteDocumentWords.
public boolean deleteDocumentWords() {
final SuggestDeleteResponse response = suggester.indexer().deleteDocumentWords();
if (response.hasError()) {
logger.warn("Failed to delete document words.", response.getErrors().get(0));
return false;
}
refresh();
return true;
}
Aggregations