- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for createSuggestTextId (0.06 sec)
-
src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java
String text = "test text"; String id = SuggestUtil.createSuggestTextId(text); assertNotNull(id); assertEquals(Base64.getEncoder().encodeToString(text.getBytes(CoreLibConstants.CHARSET_UTF_8)), id); // Test empty text String emptyText = ""; String emptyId = SuggestUtil.createSuggestTextId(emptyText); assertNotNull(emptyId);
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 18.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java
* to the specified maximum length. * * @param text the input text to be encoded * @return the encoded string, truncated if necessary */ public static String createSuggestTextId(final String text) { final String id = encoder.encodeToString(text.getBytes(CoreLibConstants.CHARSET_UTF_8)); if (id.length() > 445) { return id.substring(0, ID_MAX_LENGTH); }Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 17.4K bytes - Viewed (0)