Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for getDocumentExpires (0.09 seconds)

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

         *
         * @param config the crawling configuration containing time-to-live settings
         * @return the document expiration date, or null if no expiration is set
         */
        public Date getDocumentExpires(final CrawlingConfig config) {
            if (config != null) {
                final Integer timeToLive = config.getTimeToLive();
                if (timeToLive != null) {
                    // timeToLive minutes
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 15.2K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

            }
        }
    
        @Test
        public void test_getDocumentExpires() {
            // Test with null config
            assertNull(crawlingInfoHelper.getDocumentExpires(null));
    
            // Test with documentExpires field set (fallback behavior)
            final long currentTime = 1704067200000L; // 2024-01-01 00:00:00 UTC
            ComponentUtil.register(new SystemHelper() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

                        storeChildUrlsToQueue(urlQueue, getAnchorSet(document.get(fessConfig.getIndexFieldAnchor())));
    
                        final Date documentExpires = crawlingInfoHelper.getDocumentExpires(crawlingConfig);
                        if (documentExpires != null
                                && !indexingHelper.updateDocument(searchEngineClient, id, fessConfig.getIndexFieldExpires(), documentExpires)) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 11 09:47:03 GMT 2025
    - 19.5K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformer.java

            final PathMappingHelper pathMappingHelper = ComponentUtil.getPathMappingHelper();
            final Date documentExpires = crawlingInfoHelper.getDocumentExpires(crawlingConfig);
            final SystemHelper systemHelper = ComponentUtil.getSystemHelper();
            final FileTypeHelper fileTypeHelper = ComponentUtil.getFileTypeHelper();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 25.7K bytes
    - Click Count (0)
Back to Top