Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for _badword (0.07 sec)

  1. 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)
  2. src/main/java/org/codelibs/fess/es/config/exentity/BadWord.java

     * governing permissions and limitations under the License.
     */
    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();
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/es/config/bsentity/BsBadWord.java

    import org.codelibs.fess.es.config.allcommon.EsAbstractEntity;
    import org.codelibs.fess.es.config.bsentity.dbmeta.BadWordDbm;
    
    /**
     * ${table.comment}
     * @author ESFlute (using FreeGen)
     */
    public class BsBadWord extends EsAbstractEntity {
    
        // ===================================================================================
        //                                                                          Definition
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  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/suggest/entity/SuggestItem.java

            mergedItem.userBoost = item2.userBoost;
            mergedItem.emptySource = item2.emptySource;
    
            return mergedItem;
        }
    
        public boolean isBadWord(final String[] badWords) {
            for (final String badWord : badWords) {
                if (text.contains(badWord)) {
                    return true;
                }
            }
            return false;
        }
    
        @Override
        public String toString() {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top