- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for createSuggestTextId (0.1 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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);
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Mon Nov 24 03:40:05 GMT 2025 - 26.7K bytes - Click Count (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); }Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Nov 23 11:21:40 GMT 2025 - 17.5K bytes - Click Count (1) -
src/main/java/org/codelibs/fess/suggest/index/operations/WordManagementOperations.java
final String normalized = normalizer.normalize(elevateWord, ""); settings.elevateWord().delete(normalized); if (apply) { return deletionOps.delete(index, SuggestUtil.createSuggestTextId(normalized)); } return new SuggestDeleteResponse(null, 0); } /** * Restores elevate words. * * @param index The index name
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 6.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/entity/SuggestItemSerializer.java
itemKinds[i] = SuggestItem.Kind.USER; } } item.setKinds(itemKinds); item.setId(SuggestUtil.createSuggestTextId(text)); item.setTimestamp(ZonedDateTime.ofInstant(Instant.ofEpochMilli(timestamp), Clock.systemDefaultZone().getZone())); return item; } /**
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 13.5K bytes - Click Count (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; } /**Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 13.5K bytes - Click Count (0)