Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for updateDocument (0.08 sec)

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

            try {
                languageHelper.updateDocument(doc);
                fail("Should throw NullPointerException without detector");
            } catch (NullPointerException e) {
                // Expected since we don't have a detector
            }
        }
    
        public void test_updateDocument_emptyDoc() {
            Map<String, Object> doc = new HashMap<>();
    
            languageHelper.updateDocument(doc);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java

                    return 2.5f;
                }
            };
            indexUpdater.addDocBoostMatcher(matcher);
    
            indexUpdater.updateDocument(doc);
    
            assertEquals(2.5f, doc.get("boost"));
            assertNotNull(doc.get("doc_id"));
        }
    
        // Test updateDocument without boost
        public void test_updateDocument_withoutBoost() {
            final Map<String, Object> doc = new HashMap<>();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 33K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImplTest.java

                return matchedLabels;
            }
        }
    
        private static class TestLanguageHelper extends LanguageHelper {
            @Override
            public void updateDocument(Map<String, Object> dataMap) {
                // Do nothing
            }
        }
    
        private static class TestSearchEngineClient extends SearchEngineClient {
            // Empty implementation for testing
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/LanguageHelper.java

        }
    
        /**
         * Updates a document with language information.
         *
         * @param doc The document to update.
         */
        public void updateDocument(final Map<String, Object> doc) {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            String language = getSupportedLanguage(DocumentUtil.getValue(doc, fessConfig.getIndexFieldLang(), String.class));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

                            }
                            continue;
                        }
                        map.remove(Constants.INDEXING_TARGET);
    
                        updateDocument(map);
    
                        docList.add(ingest(accessResult, map));
                        final long contentSize = indexingHelper.calculateDocumentSize(map);
                        docList.addContentSize(contentSize);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/documents/ApiAdminDocumentsAction.java

                    if (langList.contains("auto")) {
                        newDoc.remove(indexFieldLang);
                    }
                    languageHelper.updateDocument(newDoc);
                }
                return newDoc;
            }).toList();
            if (fessConfig.isThumbnailCrawlerEnabled()) {
                final ThumbnailManager thumbnailManager = ComponentUtil.getThumbnailManager();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImpl.java

            if (!dataMap.containsKey(fessConfig.getIndexFieldDocId())) {
                dataMap.put(fessConfig.getIndexFieldDocId(), systemHelper.generateDocId(dataMap));
            }
    
            ComponentUtil.getLanguageHelper().updateDocument(dataMap);
    
            synchronized (docList) {
                docList.add(ingest(paramMap, dataMap));
                final long contentSize = indexingHelper.calculateDocumentSize(dataMap);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGenerator.java

            // TODO bulk
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            try {
                ComponentUtil.getIndexingHelper()
                        .updateDocument(ComponentUtil.getSearchEngineClient(), thumbnailId, fessConfig.getIndexFieldThumbnail(), value);
            } catch (final Exception e) {
                logger.warn("Failed to update thumbnail field at {}", thumbnailId, e);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

                        final Date documentExpires = crawlingInfoHelper.getDocumentExpires(crawlingConfig);
                        if (documentExpires != null
                                && !indexingHelper.updateDocument(searchEngineClient, id, fessConfig.getIndexFieldExpires(), documentExpires)) {
                            logger.debug("Failed to update {} at {}", fessConfig.getIndexFieldExpires(), url);
                        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

         * @param field the field name to update
         * @param value the new value for the field
         * @return true if the update was successful, false otherwise
         */
        public boolean updateDocument(final SearchEngineClient searchEngineClient, final String id, final String field, final Object value) {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 26.1K bytes
    - Viewed (0)
Back to top