Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for words (0.01 sec)

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

     * <li>{@link #addBadWord(String, boolean)} - Add a bad word and optionally apply it.
     * <li>{@link #deleteBadWord(String)} - Delete a bad word.
     * <li>{@link #addElevateWord(ElevateWord, boolean)} - Add an elevate word and optionally apply it.
     * <li>{@link #deleteElevateWord(String, boolean)} - Delete an elevate word and optionally apply it.
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequestBuilder.java

        /**
         * Sets whether to match the first word.
         * @param matchWordFirst True to match the first word, false otherwise.
         * @return This builder instance.
         */
        public SuggestRequestBuilder setMatchWordFirst(final boolean matchWordFirst) {
            request.setMatchWordFirst(matchWordFirst);
            return this;
        }
    
        /**
         * Sets whether to skip duplicate words.
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/suggest/analysis/SuggestAnalyzerTest.java

                String[] words = text.trim().split("[\\s@#$.,!?;:()\\[\\]{}\"']+");
    
                int position = 0;
                int offset = 0;
                for (String word : words) {
                    if (!word.isEmpty()) {
                        int startOffset = text.indexOf(word, offset);
                        int endOffset = startOffset + word.length();
    
                        // Handle decimal numbers
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequestBuilder.java

         */
        public PopularWordsRequestBuilder setWindowSize(final int windowSize) {
            request.setWindowSize(windowSize);
            return this;
        }
    
        /**
         * Adds an exclude word.
         * @param excludeWord The word to exclude.
         * @return This builder instance.
         */
        public PopularWordsRequestBuilder addExcludeWord(final String excludeWord) {
            request.addExcludeWord(excludeWord);
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java

            mergedItem.emptySource = item2.emptySource;
    
            return mergedItem;
        }
    
        /**
         * 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)) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 25.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            SuggestItem item = new SuggestItem(text, readings, null, 0L, 0L, 1.0f, null, null, null, SuggestItem.Kind.QUERY);
    
            // Test with no bad words
            String[] badWords = { "spam", "illegal" };
            assertFalse(item.isBadWord(badWords));
    
            // Test with matching bad word
            String[] badWords2 = { "test", "bad" };
            assertTrue(item.isBadWord(badWords2));
    
            // Test with partial match
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizer.java

            }
    
            public MyToken(final String word, final int startOffset, final int endOffset, final int posInc) {
                this(word, startOffset, endOffset, posInc, Integer.MAX_VALUE); // Integer.MAX_VALUE for seq means unused
            }
    
            public MyToken(final String word, final int startOffset, final int endOffset, final int posInc, final int seq) {
                this.word = word;
                this.startOffset = startOffset;
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 17K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/suggest/entity/ElevateWordTest.java

            String word = "test word";
            float boost = 1.5f;
            List<String> readings = Arrays.asList("reading1");
            List<String> fields = Arrays.asList("field1");
            List<String> tags = Arrays.asList("tag1");
            List<String> roles = null;
    
            elevateWord = new ElevateWord(word, boost, readings, fields, tags, roles);
    
            assertEquals(word, elevateWord.getElevateWord());
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16K bytes
    - Viewed (0)
  9. LICENSE

              pertain to any part of the Derivative Works, in at least one
              of the following places: within a NOTICE text file distributed
              as part of the Derivative Works; within the Source form or
              documentation, if provided along with the Derivative Works; or,
              within a display generated by the Derivative Works, if and
              wherever such third-party notices normally appear. The contents
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Jan 11 04:30:09 UTC 2021
    - 11.1K bytes
    - Viewed (0)
  10. LICENSE

              pertain to any part of the Derivative Works, in at least one
              of the following places: within a NOTICE text file distributed
              as part of the Derivative Works; within the Source form or
              documentation, if provided along with the Derivative Works; or,
              within a display generated by the Derivative Works, if and
              wherever such third-party notices normally appear. The contents
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Mon Jan 11 04:26:17 UTC 2021
    - 11.1K bytes
    - Viewed (0)
Back to top