Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 396 for readings2 (0.06 seconds)

  1. 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: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  2. 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)
  3. 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)
  4. 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: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Thu Aug 07 02:41:28 GMT 2025
    - 25.1K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/suggest/analysis/SuggestAnalyzerTest.java

                super(term, position, startOffset, endOffset, positionIncrement, type, attributes);
            }
    
            public String getReading() {
                return reading;
            }
    
            public void setReading(String reading) {
                this.reading = reading;
            }
        }
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/suggest/settings/ElevateWordSettings.java

                final List<String> roles = (List<String>) sourceArray[i].get(ELEVATE_WORD_ROLES);
                if (elevateWord != null && boost != null && readings != null && fields != null) {
                    elevateWords[i] =
                            new ElevateWord(elevateWord.toString(), Float.parseFloat(boost.toString()), readings, fields, tags, roles);
                }
            }
            return elevateWords;
        }
    
        /**
         * Add an elevate word.
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  7. 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)
  8. src/test/java/org/codelibs/fess/suggest/request/suggest/SuggestResponseTest.java

            String[][] readings = new String[1][];
            readings[0] = new String[] { "test" };
            items.add(new SuggestItem(new String[] { "test" }, readings, new String[] { "content" }, 1, 0, -1, new String[] { "tag1" },
                    new String[] { SuggestConstants.DEFAULT_ROLE }, null, SuggestItem.Kind.DOCUMENT));
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  9. src/main/java/jcifs/netbios/SessionServicePacket.java

            dstIndex++;
            dst[dstIndex++] = (byte) (val >> 16 & 0xFF);
            dst[dstIndex++] = (byte) (val >> 8 & 0xFF);
            dst[dstIndex] = (byte) (val & 0xFF);
        }
    
        static int readInt2(final byte[] src, final int srcIndex) {
            return ((src[srcIndex] & 0xFF) << 8) + (src[srcIndex + 1] & 0xFF);
        }
    
        static int readInt4(final byte[] src, final int srcIndex) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                assertEquals(4, written);
                assertEquals(4, SMBUtil.readInt2(minBuffer, 0));
    
                // Large buffer
                byte[] largeBuffer = new byte[10000];
                written = echoRequest.writeBytesWireFormat(largeBuffer, 5000);
                assertEquals(4, written);
                assertEquals(4, SMBUtil.readInt2(largeBuffer, 5000));
            }
    
            @Test
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.3K bytes
    - Click Count (0)
Back to Top