Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isBadWord (0.05 sec)

  1. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

        }
    
        // TODO return result
        public SuggestIndexResponse index(final SuggestItem[] items) {
            // TODO parallel?
            final SuggestItem[] array = Stream.of(items).filter(item -> !item.isBadWord(badWords)).toArray(n -> new SuggestItem[n]);
    
            try {
                final long start = System.currentTimeMillis();
                final SuggestWriterResult result = suggestWriter.write(client, settings, index, array, true);
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  2. 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;
        }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top