Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for deleteAllWords (0.08 sec)

  1. src/main/java/org/codelibs/fess/app/web/admin/suggest/AdminSuggestAction.java

            saveToken();
            return asHtml(path_AdminSuggest_AdminSuggestJsp).useForm(SuggestForm.class);
        }
    
        @Execute
        @Secured({ ROLE })
        public HtmlResponse deleteAllWords() {
            if (!suggestHelper.deleteAllWords()) {
                throwValidationError(messages -> messages.addErrorsFailedToDeleteDocInAdmin(GLOBAL),
                        () -> asHtml(path_AdminSuggest_AdminSuggestJsp).useForm(SuggestForm.class));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/suggest/ApiAdminSuggestAction.java

        }
    
        // DELETE /api/admin/suggest/all
        @Execute
        public JsonResponse<ApiResult> delete$all() {
            if (!suggestHelper.deleteAllWords()) {
                throwValidationErrorApi(messages -> messages.addErrorsFailedToDeleteDocInAdmin(GLOBAL));
            }
            return asJson(new ApiResult.ApiResponse().status(ApiResult.Status.OK).result());
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

        public long getDocumentWordsNum() {
            return suggester.getDocumentWordsNum();
        }
    
        public long getQueryWordsNum() {
            return suggester.getQueryWordsNum();
        }
    
        public boolean deleteAllWords() {
            final SuggestDeleteResponse response = suggester.indexer().deleteAll();
            if (response.hasError()) {
                logger.warn("Failed to delete all words.", response.getErrors().get(0));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.1K bytes
    - Viewed (0)
Back to top