Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for createSuggestTextId (0.08 sec)

  1. 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)
  2. 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: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 25.1K bytes
    - Viewed (0)
  3. 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: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  4. 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)
Back to top