Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for badWord (0.09 sec)

  1. src/main/java/org/codelibs/fess/es/config/exentity/BadWord.java

     */
    package org.codelibs.fess.es.config.exentity;
    
    import org.codelibs.fess.es.config.bsentity.BsBadWord;
    
    /**
     * @author ESFlute (using FreeGen)
     */
    public class BadWord extends BsBadWord {
    
        private static final long serialVersionUID = 1L;
    
        public String getId() {
            return asDocMeta().id();
        }
    
        public void setId(final String id) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/settings/BadWordSettings.java

            System.arraycopy(badWords, 0, concat, 0, badWords.length);
            System.arraycopy(defaultWords, 0, concat, badWords.length, defaultWords.length);
            return concat;
        }
    
        public void add(final String badWord) {
            if (logger.isDebugEnabled()) {
                logger.debug("Add badword. {} badword: {}", arraySettings.arraySettingsIndexName, badWord);
            }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/badword/ApiAdminBadwordAction.java

        @Resource
        protected SuggestHelper suggestHelper;
    
        // GET /api/admin/badword/settings
        // POST /api/admin/badword/settings
        @Execute
        public JsonResponse<ApiResult> settings(final SearchBody body) {
            validateApi(body, messages -> {});
            final BadWordPager pager = copyBeanToNewBean(body, BadWordPager.class);
            final List<BadWord> list = badWordService.getBadWordList(pager);
            return asJson(
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/es/config/bsentity/dbmeta/BadWordDbm.java

        {
            setupEpg(_epgMap, et -> ((BadWord) et).getCreatedBy(), (et, vl) -> ((BadWord) et).setCreatedBy(DfTypeUtil.toString(vl)),
                    "createdBy");
            setupEpg(_epgMap, et -> ((BadWord) et).getCreatedTime(), (et, vl) -> ((BadWord) et).setCreatedTime(DfTypeUtil.toLong(vl)),
                    "createdTime");
            setupEpg(_epgMap, et -> ((BadWord) et).getSuggestWord(), (et, vl) -> ((BadWord) et).setSuggestWord(DfTypeUtil.toString(vl)),
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/settings/BadWordSettingsTest.java

            settings.badword().add(value3);
            assertEquals(3, settings.badword().get(false).length);
            assertEquals(value1, settings.badword().get(false)[0]);
            assertEquals(value2, settings.badword().get(false)[1]);
            assertEquals(value3, settings.badword().get(false)[2]);
    
            settings.badword().delete(value2);
            assertEquals(2, settings.badword().get(false).length);
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/config/bsbhv/BsBadWordBhv.java

        @Override
        protected Class<? extends BadWord> typeOfSelectedEntity() {
            return BadWord.class;
        }
    
        @Override
        protected Class<BadWord> typeOfHandlingEntity() {
            return BadWord.class;
        }
    
        @Override
        protected Class<BadWordCB> typeOfHandlingConditionBean() {
            return BadWordCB.class;
        }
    
        public ListResultBean<BadWord> selectList(CBCall<BadWordCB> cbLambda) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/service/BadWordService.java

        }
    
        public OptionalEntity<BadWord> getBadWord(final String id) {
            return badWordBhv.selectByPK(id);
        }
    
        public void store(final BadWord badWord) {
    
            badWordBhv.insertOrUpdate(badWord, op -> op.setRefreshPolicy(Constants.TRUE));
    
        }
    
        public void delete(final BadWord badWord) {
    
            badWordBhv.delete(badWord, op -> op.setRefreshPolicy(Constants.TRUE));
    
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

            });
            for (final BadWord badWord : list) {
                final String word = badWord.getSuggestWord();
                suggester.indexer().addBadWord(word, apply);
            }
            refresh();
        }
    
        public void addBadWord(final String badWord, final boolean apply) {
            suggester.indexer().addBadWord(badWord, apply);
            refresh();
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

                throw new SuggestIndexException(msg, e);
            }
        }
    
        public SuggestDeleteResponse addBadWord(final String badWord, final boolean apply) {
            final String normalized = normalizer.normalize(badWord, "");
            settings.badword().add(normalized);
            badWords = settings.badword().get(true);
            if (apply) {
                return deleteByQuery(QueryBuilders.wildcardQuery(FieldNames.TEXT, "*" + normalized + "*"));
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  10. src/main/webapp/WEB-INF/view/admin/badword/admin_badword_download.jsp

        <jsp:include page="/WEB-INF/view/common/admin/sidebar.jsp">
            <jsp:param name="menuCategoryType" value="suggest"/>
            <jsp:param name="menuType" value="badWord"/>
        </jsp:include>
        <div class="content-wrapper">
            <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 5.3K bytes
    - Viewed (0)
Back to top