Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for deleteQueryWords (0.1 sec)

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

            return redirect(getClass());
        }
    
        @Execute
        @Secured({ ROLE })
        public HtmlResponse deleteQueryWords() {
            if (!suggestHelper.deleteQueryWords()) {
                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/helper/SuggestHelper.java

                return false;
            }
            refresh();
            return true;
        }
    
        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;
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/suggest/ApiAdminSuggestAction.java

        }
    
        // DELETE /api/admin/suggest/query
        @Execute
        public JsonResponse<ApiResult> delete$query() {
            if (!suggestHelper.deleteQueryWords()) {
                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)
  4. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

                SuggestUtil.deleteScrollContext(client, scrollId);
            }
    
            return new SuggestDeleteResponse(null, System.currentTimeMillis() - start);
        }
    
        public SuggestDeleteResponse deleteQueryWords() {
            final long start = System.currentTimeMillis();
    
            final SuggestDeleteResponse deleteResponse =
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

            assertEquals(2, suggester.getAllWordsNum());
            assertEquals(2, suggester.getDocumentWordsNum());
            assertEquals(1, suggester.getQueryWordsNum());
    
            suggester.indexer().deleteQueryWords();
            suggester.refresh();
            assertEquals(2, suggester.getAllWordsNum());
            assertEquals(2, suggester.getDocumentWordsNum());
            assertEquals(0, suggester.getQueryWordsNum());
        }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 37K bytes
    - Viewed (0)
Back to top