Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 246 for reading_ (0.08 seconds)

  1. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

            final Map<String, Object> secondLine = new HashMap<>();
    
            secondLine.put("text", item.getText());
    
            // reading
            final String[][] readings = item.getReadings();
            for (int i = 0; i < readings.length; i++) {
                secondLine.put("reading_" + i, readings[i]);
            }
    
            secondLine.put("fields", item.getFields());
            secondLine.put("queryFreq", item.getQueryFreq());
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Sun Nov 23 11:21:40 GMT 2025
    - 17.5K bytes
    - Click Count (1)
  2. src/test/java/org/codelibs/fess/suggest/entity/ElevateWordTest.java

        }
    
        @Test
        public void testMultipleReadingsConversion() {
            // Test conversion of multiple readings to SuggestItem format
            String word = "multi reading";
            float boost = 1.0f;
            List<String> readings = Arrays.asList("reading1", "reading2", "reading3", "reading4", "reading5");
            List<String> fields = Arrays.asList("field1");
            List<String> tags = Arrays.asList("tag1");
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 16K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            String[][] readings = { { "reading1" }, { "reading2" } };
            String[] fields = { "field1", "field2" };
            String[] tags = { "tag1", "tag2" };
            String[] roles = { "role1", "role2" };
            String[] languages = { "en", "ja" };
            SuggestItem.Kind kind = SuggestItem.Kind.QUERY;
    
            SuggestItem item = new SuggestItem(text, readings, fields, 100L, 50L, 1.5f, tags, roles, languages, kind);
    
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

        }
    
        @Test
        public void testCreateBulkLineWithMultipleReadings() {
            // Test with multiple reading levels
            SuggestItem item = new SuggestItem(new String[] { "test" },
                    new String[][] { { "reading1a", "reading1b" }, { "reading2a", "reading2b" }, { "reading3" } }, new String[] { "field1" }, 5,
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 26.7K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/suggest/converter/ReadingConverterTest.java

            String field = "content";
    
            List<String> readings1 = converter1.convert(text, field, "en");
            List<String> readings2 = converter2.convert(text, field, "ja");
    
            assertNotNull(readings1);
            assertNotNull(readings2);
            assertEquals("TEST", readings1.get(0));
            assertEquals("TEST", readings2.get(0));
        }
    
        @Test
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParser.java

                    if (readings != null && readings.length > i && readings[i].length > 0) {
                        for (final String reading : readings[i]) {
                            if (!l.contains(reading)) {
                                l.add(reading);
                            }
                        }
                    }
    
                    wordsList.add(word);
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 14.9K bytes
    - Click Count (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/MarkdownExtractor.java

                        headings.add(headingText.toString());
                    }
                    super.visit(heading);
                }
            });
    
            if (!headings.isEmpty()) {
                extractData.putValues("headings", headings.toArray(new String[0]));
            }
        }
    
        /**
         * Extracts link URLs from the document.
         *
         * @param document the parsed Markdown document
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sun Nov 23 03:46:53 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java

            header.originalMessageSize = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            // Skip reserved (2 bytes)
            bufferIndex += 2;
    
            // Read flags
            header.flags = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    
            // Read session ID
            header.sessionId = SMBUtil.readInt8(buffer, bufferIndex);
    
            return header;
        }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  9. 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: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Nov 17 14:28:21 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

                final boolean apply) {
            final String[] readings;
            if (StringUtil.isBlank(reading)) {
                readings = word.replace(" ", TEXT_SEP).replaceAll(TEXT_SEP + "+", TEXT_SEP).split(TEXT_SEP);
            } else {
                readings = reading.replace(" ", TEXT_SEP).replaceAll(TEXT_SEP + "+", TEXT_SEP).split(TEXT_SEP);
            }
    
            final List<String> labelList = new ArrayList<>();
            if (tags != null) {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 22.3K bytes
    - Click Count (0)
Back to Top