Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for minusDays (0.1 sec)

  1. src/main/java/org/codelibs/fess/app/service/UserInfoService.java

        private SystemHelper systemHelper;
    
        public void deleteBefore(final int days) {
            userInfoBhv.queryDelete(cb -> {
                cb.query().setUpdatedAt_LessEqual(systemHelper.getCurrentTimeAsLocalDateTime().minusDays(days));
            });
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

        public void storeSearchLog() {
            final SearchLogBhv searchLogBhv = ComponentUtil.getComponent(SearchLogBhv.class);
    
            searchLogBhv.selectBulk(cb -> {
                final String from = LocalDateTime.now().minusDays(fessConfig.getPurgeSuggestSearchLogDay()).format(DateTimeFormatter.ISO_DATE);
                cb.query().addQuery(QueryBuilders.rangeQuery("requestedAt").gte(from));
                cb.query().addOrderBy_RequestedAt_Asc();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/exec/SuggestCreator.java

                final long cleanupDay = ComponentUtil.getFessConfig().getPurgeSuggestSearchLogDay();
                if (cleanupDay > 0) {
                    suggestHelper.purgeSearchlogSuggest(time.minusDays(cleanupDay));
                }
                return 0;
            } catch (final Exception e) {
                logger.info("Purge error.", e);
                return 1;
            }
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/service/SearchLogService.java

        protected FessConfig fessConfig;
    
        public void deleteBefore(final int days) {
            searchLogBhv.queryDelete(cb -> {
                cb.query().setRequestedAt_LessEqual(systemHelper.getCurrentTimeAsLocalDateTime().minusDays(days));
            });
        }
    
        public List<?> getSearchLogList(final SearchLogPager pager) {
            final EsPagingResultBean<?> list;
            if (SearchLogPager.LOG_TYPE_USERINFO.equalsIgnoreCase(pager.logType)) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 28.4K bytes
    - Viewed (0)
Back to top