- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for toUpdatedSource (0.24 seconds)
-
src/main/java/org/codelibs/fess/suggest/entity/SuggestItemSerializer.java
* * @param item The SuggestItem with new data * @param existingSource The existing source map from OpenSearch * @return A merged source map */ public static Map<String, Object> toUpdatedSource(final SuggestItem item, final Map<String, Object> existingSource) { final Map<String, Object> map = new HashMap<>(); map.put(FieldNames.TEXT, item.getText());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/test/java/org/codelibs/fess/suggest/entity/SuggestItemSerializerTest.java
existing.put(FieldNames.QUERY_FREQ, 3L); existing.put(FieldNames.TIMESTAMP, System.currentTimeMillis()); Map<String, Object> updated = SuggestItemSerializer.toUpdatedSource(item, existing); assertNotNull(updated); assertTrue(updated.containsKey(FieldNames.DOC_FREQ)); assertTrue(updated.containsKey(FieldNames.QUERY_FREQ)); } @Test
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 5.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java
* @return The updated source map. */ public Map<String, Object> getUpdatedSource(final Map<String, Object> existingSource) { return SuggestItemSerializer.toUpdatedSource(this, existingSource); } /** * Concatenates values to a destination list, avoiding duplicates. * @param dest The destination list. * @param newValues The new values to add.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)