Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Phan (0.01 sec)

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

            String[][] readings = { { "test" } };
    
            // Test with boost less than 1
            SuggestItem item = new SuggestItem(text, readings, null, 0L, 0L, 0.5f, null, null, null, SuggestItem.Kind.QUERY);
            assertEquals(1.0f, item.getUserBoost(), 0.001f); // Should be set to 1
    
            // Test with boost greater than 1
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/converter/ReadingConverterTest.java

            limitConverter.init();
    
            assertEquals(5, limitConverter.getMaxReadingNum());
    
            String text = "test";
            String field = "content";
    
            // Request more languages than max reading num
            List<String> readings = limitConverter.convert(text, field, "en", "ja", "fr", "de", "es", "it", "pt");
    
            assertNotNull(readings);
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

            assertEquals(1, singleKeyword.length);
            assertEquals("single", singleKeyword[0]);
        }
    
        @Test
        public void testParseQueryWithTooManyTerms() {
            // Test query with more than MAX_QUERY_TERM_NUM (5) terms
            String query = "one two three four five six seven";
            String field = "content";
            String[] keywords = SuggestUtil.parseQuery(query, field);
            assertNotNull(keywords);
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

         *
         * This method replaces all occurrences of '*' with '\*' and
         * all occurrences of '?' with '\?' to ensure that these characters
         * are treated as literals rather than wildcard characters in queries.
         *
         * @param query the query string to escape
         * @return the escaped query string
         */
        public static String escapeWildcardQuery(final String query) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 17.4K bytes
    - Viewed (1)
Back to top