- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for createSuggestTextId (0.15 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: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 24 03:40:05 UTC 2025 - 26.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java
} this.docFreq = docFreq; this.queryFreq = queryFreq; timestamp = ZonedDateTime.now(); emptySource = createEmptyMap(); id = SuggestUtil.createSuggestTextId(this.text); } /** * Returns the text of the suggest item. * @return The text. */ public String getText() { return text; } /**Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Thu Aug 07 02:41:28 UTC 2025 - 25.1K 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() > ID_MAX_LENGTH) { return id.substring(0, ID_MAX_LENGTH); }Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Sun Nov 23 11:21:40 UTC 2025 - 17.5K bytes - Viewed (1) -
src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java
final String normalized = normalizer.normalize(elevateWord, ""); settings.elevateWord().delete(normalized); if (apply) { return delete(SuggestUtil.createSuggestTextId(normalized)); } return new SuggestDeleteResponse(null, 0); } /** * Restores elevate words. * @return The SuggestIndexResponse. */
Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 24 03:40:05 UTC 2025 - 34.4K bytes - Viewed (0)