Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 591 for words (0.28 sec)

  1. src/test/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsResponseTest.java

        }
    
        @Test
        public void test_getNum() throws Exception {
            List<String> words = new ArrayList<>();
            words.add("word1");
            words.add("word2");
            words.add("word3");
            words.add("word4");
    
            PopularWordsResponse response = new PopularWordsResponse("test-index", 100, words, 20, new ArrayList<>());
    
            assertEquals(4, response.getNum());
        }
    
        @Test
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Thu Nov 13 00:40:54 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/request/suggest/SuggestResponseTest.java

        }
    
        @Test
        public void test_getNum() throws Exception {
            List<String> words = new ArrayList<>();
            words.add("word1");
            words.add("word2");
            words.add("word3");
    
            SuggestResponse response = new SuggestResponse("test-index", 100, words, 20, new ArrayList<>());
    
            assertEquals(3, response.getNum());
        }
    
        @Test
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestResponse.java

        /**
         * Returns the list of suggested words.
         * @return The list of words.
         */
        public List<String> getWords() {
            return words;
        }
    
        /**
         * Returns the number of suggested words.
         * @return The number of words.
         */
        public int getNum() {
            return num;
        }
    
        /**
         * Returns the total number of hits.
         * @return The total number of hits.
         */
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParser.java

                    final String[] words = SuggestUtil.parseQuery(queryString, field);
                    if (words.length == 0) {
                        continue;
                    }
    
                    final String[][] readings = new String[words.length][];
                    for (int j = 0; j < words.length; j++) {
                        words[j] = normalizer.normalize(words[j], field, "");
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/PopularWordHelper.java

                        logger.warn("Failed to generate popular words.", e);
                    }
    
                    return wordList;
                });
            } catch (final ExecutionException e) {
                logger.warn("Failed to load popular words.", e);
            }
            return Collections.emptyList();
        }
    
        /**
         * Clears all cached popular word lists.
         */
        public void clearCache() {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/synonym/SynonymItem.java

        }
    
        /**
         * Gets the new input words.
         * Returns a defensive copy to prevent external modification.
         *
         * @return The new input words (defensive copy).
         */
        public String[] getNewInputs() {
            return newInputs == null ? null : newInputs.clone();
        }
    
        /**
         * Sets the new input words.
         *
         * @param newInputs The new input words.
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 20 07:09:00 UTC 2025
    - 6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsResponse.java

         * @param words the list of popular words
         * @param total the total number of words
         * @param items the list of suggested items
         */
        public PopularWordsResponse(final String index, final long tookMs, final List<String> words, final long total,
                final List<SuggestItem> items) {
            this.index = index;
            this.tookMs = tookMs;
            this.words = words;
            num = words.size();
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/suggest/settings/ElevateWordSettings.java

     *   <li>{@code ELEVATE_WORD_TAGS} - The key for elevate word tags.</li>
     *   <li>{@code ELEVATE_WORD_ROLES} - The key for elevate word roles.</li>
     * </ul>
     *
     * <p>Methods:</p>
     * <ul>
     *   <li>{@code get()} - Retrieves an array of elevate words from the settings.</li>
     *   <li>{@code add(ElevateWord elevateWord)} - Adds a new elevate word to the settings.</li>
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/settings/BadWordSettings.java

    /**
     * The BadWordSettings class manages the settings related to bad words.
     * It allows adding, deleting, and retrieving bad words from the settings.
     * It also supports loading default bad words from a file.
     */
    public class BadWordSettings {
        private static final Logger logger = LogManager.getLogger(BadWordSettings.class);
    
        /** Key for bad word settings. */
        public static final String BAD_WORD_SETTINGS_KEY = "badword";
    
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Sun Nov 23 03:02:17 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequest.java

    import org.opensearch.transport.client.Client;
    
    /**
     * Represents a request for popular words. This class extends {@link Request} and is parameterized
     * with {@link PopularWordsResponse}. It allows specifying various criteria for retrieving popular words,
     * such as index, size, tags, roles, fields, languages, and exclusion words.
     *
     * <p>Key functionalities include:</p>
     * <ul>
     *   <li>Setting the target index for the search.</li>
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 9.2K bytes
    - Viewed (0)
Back to top