Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 710 for words (0.02 seconds)

  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
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Thu Nov 13 00:40:54 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  2. 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.
         */
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Fri Jul 04 14:00:23 GMT 2025
    - 3K bytes
    - Click Count (0)
  3. 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
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  4. 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.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 6K bytes
    - Click Count (0)
  5. 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();
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 15 06:51:20 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  6. 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() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  7. 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, "");
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 15.2K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/it/search/SuggestWordsApiTests.java

    import org.junit.jupiter.api.Tag;
    import org.junit.jupiter.api.Test;
    
    import io.restassured.RestAssured;
    import io.restassured.path.json.JsonPath;
    
    /**
     * Integration tests for the Suggest Words API (/api/v1/suggest-words)
     */
    @Tag("it")
    public class SuggestWordsApiTests extends ITBase {
    
        @BeforeAll
        protected static void initAll() {
            RestAssured.baseURI = getFessUrl();
            settingTestToken();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParserEdgeCaseTest.java

                    parser.parseSearchWords(words, null, fields, null, null, 1, defaultReadingConverter, defaultNormalizer, analyzer, null);
    
            assertNotNull(item);
            assertEquals("test", item.getText());
        }
    
        @Test
        public void test_parseSearchWords_withPartialReadings() throws Exception {
            String[] words = new String[] { "word1", "word2", "word3" };
            // Only provide readings for first word
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 20.3K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/dict/protwords/CreateForm.java

    import org.lastaflute.web.validation.theme.conversion.ValidateTypeFailure;
    
    import jakarta.validation.constraints.Size;
    
    /**
     * Form class for creating protected words dictionary entries.
     * Protected words are terms that should not be modified or analyzed during
     * text processing, preserving their original form in search indexes.
     *
     */
    public class CreateForm {
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 1.7K bytes
    - Click Count (0)
Back to Top