- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 23 for _badword (0.1 seconds)
-
src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java
/** * Checks if the suggest item contains any of the given bad words. * @param badWords The array of bad words. * @return True if the item contains a bad word, false otherwise. */ public boolean isBadWord(final String[] badWords) { for (final String badWord : badWords) { if (text.contains(badWord)) { return true; } } return false; }Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 13.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java
badWords = settings.badword().get(true); return response; } /** * Deletes a bad word. * @param badWord The bad word to delete. */ public void deleteBadWord(final String badWord) { ensureOperations(); wordMgmtOps.deleteBadWord(badWord); } /** * Adds an elevate word.
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sat Mar 14 02:35:38 GMT 2026 - 20.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/index/operations/IndexingOperations.java
* @param items The suggest items to index * @param badWords The list of bad words to filter against * @return The SuggestIndexResponse */ public SuggestIndexResponse index(final String index, final SuggestItem[] items, final String[] badWords) { final SuggestItem[] filteredItems = Stream.of(items).filter(item -> !item.isBadWord(badWords)).toArray(SuggestItem[]::new); if (logger.isDebugEnabled()) {Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 3.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/index/SuggestIndexerTest.java
suggester.indexer().addBadWord("badword", false); String[] badWords = suggester.settings().badword().get(false); assertTrue(badWords.length > 0); suggester.indexer().deleteBadWord("badword"); badWords = suggester.settings().badword().get(false); assertEquals(0, badWords.length); } @Test
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sat Mar 14 02:35:38 GMT 2026 - 28.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/index/operations/WordManagementOperations.java
* @param index The index name * @param badWord The bad word to add * @param apply Whether to apply the change immediately (delete matching items) * @return The SuggestDeleteResponse */ public SuggestDeleteResponse addBadWord(final String index, final String badWord, final boolean apply) { final String normalized = normalizer.normalize(badWord, ""); settings.badword().add(normalized); if (apply) {Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 6.4K bytes - Click Count (0) -
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> <main class="content-wrapper"> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6">
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Feb 23 08:03:44 GMT 2026 - 5.4K bytes - Click Count (0) -
src/main/webapp/WEB-INF/view/admin/badword/admin_badword.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> <main class="content-wrapper"> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6">
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Feb 23 08:03:44 GMT 2026 - 6.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/badword/AdminBadwordAction.java
public ActionResponse download(final DownloadForm form) { verifyToken(this::asDownloadHtml); return asStream("badword.csv").contentTypeOctetStream().stream(out -> { final Path tempFile = ComponentUtil.getSystemHelper().createTempFile("fess-badword-", ".csv").toPath(); try {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Jan 23 23:57:26 GMT 2026 - 18K bytes - Click Count (0) -
src/main/webapp/WEB-INF/view/admin/badword/admin_badword_details.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> <main class="content-wrapper"> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6">
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Feb 23 08:03:44 GMT 2026 - 7K bytes - Click Count (0) -
src/main/webapp/WEB-INF/view/admin/badword/admin_badword_edit.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> <main class="content-wrapper"> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6">
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Feb 23 08:03:44 GMT 2026 - 6.6K bytes - Click Count (0)