Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for updateDocument (0.15 sec)

  1. src/main/java/org/codelibs/fess/helper/LanguageHelper.java

            supportedLanguages = fessConfig.getSupportedLanguagesAsArray();
            maxTextLength = fessConfig.getIndexerLanguageDetectLengthAsInteger();
        }
    
        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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  3. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 25 01:48:41 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. 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) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

                        QueryBuilders.termsQuery(fessConfig.getIndexFieldDocId(), docIdList.stream().toArray(n -> new String[n])));
            }
            return 0L;
        }
    
        public boolean updateDocument(final SearchEngineClient searchEngineClient, final String id, final String field, final Object value) {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/IndexingHelperTest.java

            ComponentUtil.register(client, "searchEngineClient");
    
            final String id = "001";
            final String field = "content";
            final String value = "test";
    
            assertTrue(indexingHelper.updateDocument(client, id, field, value));
            assertEquals("fess.update", resultMap.get("index"));
            assertEquals(id, resultMap.get("id"));
            assertEquals(field, resultMap.get("field"));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Jul 24 08:54:24 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top