Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for createSuggestTextId (0.28 sec)

  1. src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java

            }
            this.docFreq = docFreq;
            this.queryFreq = queryFreq;
            this.timestamp = ZonedDateTime.now();
            this.emptySource = createEmptyMap();
            this.id = SuggestUtil.createSuggestTextId(this.text);
        }
    
        public String getText() {
            return text;
        }
    
        public String[][] getReadings() {
            return readings;
        }
    
        public String[] getTags() {
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

        private static final Base64.Encoder encoder = Base64.getEncoder();
    
        private static final int ID_MAX_LENGTH = 445;
    
        private SuggestUtil() {
        }
    
        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: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 11.7K 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);
        }
    
        public SuggestIndexResponse restoreElevateWord() {
            final long start = System.currentTimeMillis();
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 26.1K bytes
    - Viewed (0)
Back to top