Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            systemHelper.setForceStop(false);
            assertFalse(systemHelper.isForceStop());
        }
    
        public void test_generateDocId() {
            final String docId = systemHelper.generateDocId(Collections.emptyMap());
            assertNotNull(docId);
            assertEquals(32, docId.length());
        }
    
        public void test_abbreviateLongText() {
            assertEquals("", systemHelper.abbreviateLongText(""));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/searchlist/AdminSearchlistAction.java

            switch (form.crudMode) {
            case CrudMode.CREATE:
                final Map<String, Object> entity = new HashMap<>();
                entity.put(fessConfig.getIndexFieldDocId(), systemHelper.generateDocId(entity));
                return OptionalEntity.of(entity);
            case CrudMode.EDIT:
                final String docId;
                if (form.doc != null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Jul 24 09:03:45 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

                addBoostValue(map, documentBoost);
            }
    
            if (!map.containsKey(fessConfig.getIndexFieldDocId())) {
                map.put(fessConfig.getIndexFieldDocId(), systemHelper.generateDocId(map));
            }
    
            ComponentUtil.getLanguageHelper().updateDocument(map);
        }
    
        protected void addBoostValue(final Map<String, Object> map, final float documentBoost) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/SystemHelper.java

        }
    
        public boolean isForceStop() {
            return forceStop.get();
        }
    
        public void setForceStop(final boolean b) {
            forceStop.set(b);
        }
    
        public String generateDocId(final Map<String, Object> map) {
            return UUID.randomUUID().toString().replace("-", StringUtil.EMPTY);
        }
    
        public String abbreviateLongText(final String str) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 27.2K bytes
    - Viewed (0)
Back to top