Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for etext (0.01 sec)

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

    import org.opensearch.core.common.Strings;
    import org.opensearch.transport.client.Client;
    
    import com.ibm.icu.text.Transliterator;
    
    /**
     * AnalyzerConverter is a class that implements the ReadingConverter interface.
     * It is responsible for converting text using specified language analyzers.
     * The class uses a Transliterator to convert between Hiragana and Katakana.
     *
     * <p>Constructor:
     * <ul>
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/converter/AnalyzerConverterTest.java

            String text = "test text";
            String field = "content";
    
            List<String> results = converter.convert(text, field, "en");
    
            assertNotNull(results);
            // Results may vary based on analyzer configuration
        }
    
        @Test
        public void testConvertWithMultipleLanguages() throws IOException {
            // Test convert with multiple languages
            String text = "test text";
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/normalizer/AnalyzerNormalizer.java

            }
    
            /**
             * Normalizes the given text based on the specified field.
             *
             * @param text  the text to normalize
             * @param field the field to use for normalization
             * @param dummy additional parameters (not used)
             * @return the normalized text
             */
            @Override
            public String normalize(final String text, final String field, final String... dummy) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 4K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/PdfExtractor.java

                }
            }
        }
    
        /**
         * Extracts text from an embedded file using the appropriate extractor.
         * @param filename the filename of the embedded file
         * @param embeddedFile the embedded file to extract text from
         * @param writer the writer to append extracted text to
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/normalizer/FullWidthToHalfWidthAlphabetNormalizer.java

            // nothing
        }
    
        @Override
        public String normalize(final String text, final String field, final String... langs) {
            final char[] chars = new char[text.length()];
            for (int i = 0; i < chars.length; i++) {
                final char c = text.charAt(i);
                if (c >= 'a' && c <= 'z') {
                    chars[i] = (char) (c - 'a' + 'a');
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java

        }
    
        /**
         * Extracts a date string from the received header text.
         *
         * @param text the received header text
         * @return the date string starting from the day of week, or null if not found
         */
        private static String getDateString(final String text) {
            for (final String dow : DAY_OF_WEEK) {
                final int i = text.lastIndexOf(dow);
                if (i != -1) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/constants/FieldNames.java

     * </ul>
     *
     * This class cannot be instantiated.
     */
    public final class FieldNames {
        /** The unique identifier field. */
        public static final String ID = "_id";
        /** The text content field. */
        public static final String TEXT = "text";
        /** The prefix for reading fields. */
        public static final String READING_PREFIX = "reading_";
        /** The score field. */
        public static final String SCORE = "score";
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/suggest/analysis/SuggestAnalyzerTest.java

            // Test analyze with empty text
            String text = "";
            String field = "content";
            String lang = "en";
    
            List<AnalyzeToken> tokens = analyzer.analyze(text, field, lang);
    
            assertNotNull(tokens);
            assertTrue(tokens.isEmpty());
        }
    
        @Test
        public void testAnalyzeWithNullText() {
            // Test analyze with null text
            String text = null;
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/suggest/converter/ReadingConverterTest.java

            // Test convert with various whitespace
            converter.init();
            String text = "  test  \n\t  text  ";
            String field = "content";
    
            List<String> readings = converter.convert(text, field, "en");
    
            assertNotNull(readings);
            assertEquals(1, readings.size());
            assertEquals("  TEST  \n\t  TEXT  ", readings.get(0));
        }
    
        @Test
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            // Test all getter and setter methods
            String[] text = { "initial" };
            String[][] readings = { { "read" } };
            SuggestItem item = new SuggestItem(text, readings, null, 0L, 0L, 1.0f, null, null, null, SuggestItem.Kind.USER);
    
            // Test text
            item.setText("sample text");
            assertEquals("sample text", item.getText());
    
            // Test timestamp
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16.7K bytes
    - Viewed (0)
Back to top