Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for readLines (0.03 sec)

  1. src/test/java/org/codelibs/fess/suggest/entity/ElevateWordTest.java

            // Test toSuggestItem with empty readings
            String word = "no readings";
            float boost = 1.0f;
            List<String> readings = Collections.emptyList();
            List<String> fields = Arrays.asList("field1");
            List<String> tags = Arrays.asList("tag1");
            List<String> roles = Arrays.asList("role1");
    
            elevateWord = new ElevateWord(word, boost, readings, fields, tags, roles);
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/entity/ElevateWord.java

         *
         * @param elevateWord the elevate word
         * @param boost the boost value
         * @param readings the list of readings
         * @param fields the list of fields
         * @param tags the list of tags
         * @param roles the list of roles
         */
        public ElevateWord(final String elevateWord, final float boost, final List<String> readings, final List<String> fields,
                final List<String> tags, final List<String> roles) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/index/contents/ContentsParser.java

     */
    public interface ContentsParser {
        /**
         * Parses the given search words and creates a SuggestItem.
         *
         * @param words the array of search words
         * @param readings the array of readings corresponding to the search words
         * @param fields the array of fields associated with the search words
         * @param tags the array of tags associated with the search words
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParser.java

                    final List<String> l = readingConverter.convert(word, fields != null && fields.length > 0 ? fields[0] : "", langs);
                    if (readings != null && readings.length > i && readings[i].length > 0) {
                        for (final String reading : readings[i]) {
                            if (!l.contains(reading)) {
                                l.add(reading);
                            }
                        }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/converter/ReadingConverterTest.java

            assertNotNull(readings);
            assertEquals(3, readings.size());
            assertEquals("TEST_en", readings.get(0));
            assertEquals("TEST_ja", readings.get(1));
            assertEquals("TEST_fr", readings.get(2));
        }
    
        @Test
        public void testConvertWithNoLanguages() throws IOException {
            // Test convert with no languages specified
            converter.init();
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/converter/ReadingConverter.java

    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;
        }
    
        /**
         * Initializes the converter.
         *
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  7. 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.
         */
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 25.1K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            String[] text = { "text" };
            String[][] readings = { { "reading" } };
    
            SuggestItem item = new SuggestItem(text, readings, null, 0L, 0L, 1.0f, null, null, null, SuggestItem.Kind.DOCUMENT);
    
            assertNotNull(item);
            assertEquals("text", item.getText());
            assertArrayEquals(readings, item.getReadings());
            assertNotNull(item.getFields());
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/analysis/SuggestAnalyzer.java

        /**
         * Analyzes the given text and returns a list of tokens along with their readings.
         *
         * @param text the text to analyze
         * @param field the field associated with the text
         * @param lang the language of the text
         * @return a list of analyzed tokens with their readings
         */
        List<AnalyzeToken> analyzeAndReading(String text, String field, String lang);
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

            assertEquals(1, count);
        }
    
        private SuggestItem[] getItemSet1() {
            SuggestItem[] queryItems = new SuggestItem[3];
    
            String[][] readings = new String[2][];
            readings[0] = new String[] { "kensaku", "fuga" };
            readings[1] = new String[] { "enjin", "fuga" };
            String[] tags = new String[] { "tag1", "tag2" };
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 37.2K bytes
    - Viewed (0)
Back to top