Search in sources :

Example 1 with SuggestDeleteResponse

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;
}
Also used : SuggestDeleteResponse(org.codelibs.fess.suggest.index.SuggestDeleteResponse)

Example 2 with SuggestDeleteResponse

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;
}
Also used : SuggestDeleteResponse(org.codelibs.fess.suggest.index.SuggestDeleteResponse)

Example 3 with SuggestDeleteResponse

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;
}
Also used : SuggestDeleteResponse(org.codelibs.fess.suggest.index.SuggestDeleteResponse)

Aggregations

SuggestDeleteResponse (org.codelibs.fess.suggest.index.SuggestDeleteResponse)3