Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 433 for pattern1 (0.05 sec)

  1. src/test/java/org/codelibs/opensearch/extension/analysis/PatternConcatenationFilterFactory.java

                logger.debug("pattern1: {}, pattern2: {}", pattern1Str, pattern2Str);
            }
            if (pattern1Str != null) {
                pattern1 = Pattern.compile(pattern1Str);
                pattern2 = Pattern.compile(pattern2Str);
            }
        }
    
        @Override
        public TokenStream create(final TokenStream tokenStream) {
            return new PatternConcatenationFilter(tokenStream, pattern1, pattern2);
        }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            @Test
            @DisplayName("Should handle special offset patterns")
            void testSpecialOffsetPatterns() {
                // Given - alternating bit pattern
                long pattern1 = 0xAAAAAAAAAAAAAAAAL;
                long pattern2 = 0x5555555555555555L;
                int pattern3 = 0xDEADBEEF;
                SrvCopychunk chunk = new SrvCopychunk(pattern1, pattern2, pattern3);
                byte[] buffer = new byte[EXPECTED_SIZE];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/thumbnail/impl/EmptyGeneratorTest.java

            emptyGenerator = new EmptyGenerator();
    
            // Test adding conditions - this should work without container
            emptyGenerator.addCondition("field1", "pattern1");
            emptyGenerator.addCondition("field1", "pattern2");
            emptyGenerator.addCondition("field2", "pattern.*");
    
            // We can't test isTarget properly without container,
            // but we can verify conditions are added
            assertNotNull(emptyGenerator);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/MemoryDataHelper.java

        /** Map of session IDs to include URL patterns for filtering URLs. */
        protected volatile Map<String, List<Pattern>> includeUrlPatternMap = new HashMap<>();
    
        /** Map of session IDs to exclude URL patterns for filtering URLs. */
        protected volatile Map<String, List<Pattern>> excludeUrlPatternMap = new HashMap<>();
    
        /**
         * Creates a new MemoryDataHelper instance.
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  5. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlFilterService.java

        }
    
        /**
         * Gets the list of include URL patterns for the specified session.
         *
         * @param sessionId The session ID.
         * @return The list of compiled include patterns.
         * @throws CrawlerSystemException if the patterns cannot be loaded.
         */
        @Override
        public List<Pattern> getIncludeUrlPatternList(final String sessionId) {
            try {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java

    /**
     * A factory class for managing and creating crawler clients based on URL patterns.
     * This class implements AutoCloseable to properly handle resource cleanup.
     *
     * <p>The factory maintains a map of regular expression patterns to crawler clients,
     * allowing for URL-based client selection. Clients can be added with specific patterns
     * and optionally at specific positions in the processing order.</p>
     *
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 7K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/UrlFilterTest.java

            String sessionId = "test-session-024";
            urlFilter.init(sessionId);
    
            // Test empty pattern
            urlFilter.addInclude("");
            urlFilter.addExclude("");
    
            // Test single character pattern
            urlFilter.addInclude(".");
            urlFilter.addExclude("*");
    
            // Test patterns with only special characters
            urlFilter.addInclude("^$");
            urlFilter.addExclude(".*");
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/filter/impl/UrlFilterImpl.java

            final List<Pattern> includeList = getUrlFilterService().getIncludeUrlPatternList(sessionId);
            final List<Pattern> excludeList = getUrlFilterService().getExcludeUrlPatternList(sessionId);
    
            if (!includeList.isEmpty()) {
                boolean match = false;
                for (final Pattern pattern : includeList) {
                    final Matcher matcher = pattern.matcher(url);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/service/UrlFilterService.java

        /**
         * Retrieves a list of URL patterns to include for a given session.
         *
         * @param sessionId the ID of the session for which to retrieve the include URL patterns
         * @return a list of compiled regular expression patterns representing the URLs to include
         */
        List<Pattern> getIncludeUrlPatternList(String sessionId);
    
        /**
         * Retrieves a list of URL patterns to be excluded for a given session.
         *
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/RegexRule.java

         * @param regex the regular expression pattern
         */
        public void addRule(final String key, final String regex) {
            regexMap.put(key, Pattern.compile(regex));
        }
    
        /**
         * Adds a compiled regular expression rule for the specified field.
         * @param key the field name to match against
         * @param pattern the compiled regular expression pattern
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 6.2K bytes
    - Viewed (0)
Back to top