Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for deleteBadWord (0.12 sec)

  1. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

        public void addBadWord(final String badWord, final boolean apply) {
            suggester.indexer().addBadWord(badWord, apply);
            refresh();
        }
    
        public void deleteBadWord(final String badWord) {
            suggester.indexer().deleteBadWord(badWord);
            refresh();
        }
    
        public synchronized void refresh() {
            suggester.refresh();
            if (popularWordHelper != null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/badword/ApiAdminBadwordAction.java

            try {
                badWordService.getBadWord(id).ifPresent(entity -> {
                    try {
                        badWordService.delete(entity);
                        suggestHelper.deleteBadWord(entity.getSuggestWord());
                        saveInfo(messages -> messages.addSuccessCrudDeleteCrudTable(GLOBAL));
                    } catch (final Exception e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/badword/AdminBadwordAction.java

            final String id = form.id;
            badWordService.getBadWord(id).ifPresent(entity -> {
                try {
                    badWordService.delete(entity);
                    suggestHelper.deleteBadWord(entity.getSuggestWord());
                    saveInfo(messages -> messages.addSuccessCrudDeleteCrudTable(GLOBAL));
                } catch (final Exception e) {
                    logger.warn("Failed to process a request.", e);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

            if (apply) {
                return deleteByQuery(QueryBuilders.wildcardQuery(FieldNames.TEXT, "*" + normalized + "*"));
            }
            return new SuggestDeleteResponse(null, 0);
        }
    
        public void deleteBadWord(final String badWord) {
            settings.badword().delete(normalizer.normalize(badWord, ""));
        }
    
        public SuggestIndexResponse addElevateWord(final ElevateWord elevateWord, final boolean apply) {
    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(1, response3.getNum());
    
            assertEquals(2, suggester.settings().badword().get(false).length);
            suggester.indexer().deleteBadWord("[");
            suggester.indexer().deleteBadWord("エンジン");
            assertEquals(0, suggester.settings().badword().get(false).length);
        }
    
        @Test
        public void test_popularWords() throws Exception {
    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