Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 431 for readings (0.07 seconds)

  1. src/main/java/org/codelibs/fess/suggest/converter/ReadingConverter.java

    import java.io.IOException;
    import java.util.List;
    
    /**
     * Interface for converting text into its reading form.
     */
    public interface ReadingConverter {
    
        /**
         * Returns the maximum number of readings.
         *
         * @return the maximum number of readings, default is 10.
         */
        default int getMaxReadingNum() {
            return 10;
        }
    
        /**
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 17 14:28:21 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemMergerTest.java

            String[][] readings = { { "reading" } };
            String[] fields = { "field" };
    
            return new SuggestItem(texts, readings, fields, 1L, 1L, 1.0f, tags, new String[0], new String[0], SuggestItem.Kind.DOCUMENT);
        }
    
        private SuggestItem createItemWithRoles(String text, String... roles) {
            String[] texts = { text };
            String[][] readings = { { "reading" } };
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 6K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/suggest/index/SuggestIndexerTest.java

            String[][] readings1 = new String[1][];
            readings1[0] = new String[] { "doc" };
            items[0] = new SuggestItem(new String[] { "ドキュメント" }, readings1, new String[] { "content" }, 1, 0, -1, new String[] { "tag1" },
                    new String[] { SuggestConstants.DEFAULT_ROLE }, null, SuggestItem.Kind.DOCUMENT);
    
            String[][] readings2 = new String[1][];
    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)
  4. src/test/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequestTest.java

        }
    
        @Test
        public void test_addLanguage() throws Exception {
            SuggestItem[] items = new SuggestItem[1];
            String[][] readings = new String[1][];
            readings[0] = new String[] { "test" };
            items[0] = new SuggestItem(new String[] { "test" }, readings, new String[] { "content" }, 0, 15, -1, new String[] { "tag1" },
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/suggest/request/suggest/SuggestRequestBuilderTest.java

        }
    
        @Test
        public void test_addLang() throws Exception {
            SuggestItem[] items = new SuggestItem[1];
            String[][] readings = new String[1][];
            readings[0] = new String[] { "test" };
            items[0] = new SuggestItem(new String[] { "test" }, readings, new String[] { "content" }, 1, 0, -1, new String[] { "tag1" },
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParserEdgeCaseTest.java

            String[] words = new String[] { "word1", "word2", "word3" };
            // Only provide readings for first word
            String[][] readings = new String[][] { new String[] { "reading1" } };
            String[] fields = new String[] { "content" };
    
            SuggestItem item =
                    parser.parseSearchWords(words, readings, fields, null, null, 1, defaultReadingConverter, defaultNormalizer, analyzer, null);
    
    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)
  7. src/test/java/org/codelibs/fess/suggest/SuggesterIndexLifecycleTest.java

            Suggester suggester = createSuggester();
            suggester.createIndexIfNothing();
    
            // Index some data
            String[][] readings = new String[1][];
            readings[0] = new String[] { "test" };
            SuggestItem item = new SuggestItem(new String[] { "テスト" }, readings, new String[] { "content" }, 1, 0, -1, new String[] { "tag1" },
                    new String[] { SuggestConstants.DEFAULT_ROLE }, null, SuggestItem.Kind.DOCUMENT);
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java

        public void setUserBoost(final float userBoost) {
            this.userBoost = userBoost;
        }
    
        /**
         * Sets the readings of the suggest item.
         * @param readings The readings to set.
         */
        public void setReadings(final String[][] readings) {
            this.readings = readings;
        }
    
        /**
         * Sets the fields of the suggest item.
         * @param fields The fields to set.
         */
    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)
  9. src/main/java/org/codelibs/fess/suggest/entity/SuggestItemSerializer.java

            final Map<String, Object> map = new HashMap<>();
            map.put(FieldNames.TEXT, item.getText());
    
            final String[][] readings = item.getReadings();
            for (int i = 0; i < readings.length; i++) {
                final String[] values = readings[i] == null ? null : Arrays.stream(readings[i]).distinct().toArray(n -> new String[n]);
                map.put(FieldNames.READING_PREFIX + i, values);
            }
    
    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)
  10. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

            queryItems[0] = new SuggestItem(new String[] { "検索", "エンジン" }, readings, new String[] { "content" }, 1, 0, -1, tags, roles, null,
                    SuggestItem.Kind.DOCUMENT);
    
            String[][] readings2 = new String[2][];
            readings2[0] = new String[] { "zenbun", "fuga" };
            readings2[1] = new String[] { "kensaku", "fuga" };
            String[] tags2 = new String[] { "tag3" };
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 37.1K bytes
    - Click Count (0)
Back to Top