Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 378 for matchAt (0.08 seconds)

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

            }
    
            /**
             * Matches the given path.
             *
             * @param path The path to match.
             * @return True if the path matches, otherwise false.
             */
            public boolean match(final String path) {
                if (includedPaths == null) {
                    if (excludedPaths != null && excludedPaths.matcher(path).matches()) {
                        if (logger.isDebugEnabled()) {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/RobotsTxt.java

                return length;
            }
    
            /**
             * Checks if the given path matches this pattern.
             * @param path the path to check
             * @return true if the path matches, false otherwise
             */
            public boolean matches(final String path) {
                return regexPattern.matcher(path).find();
            }
    
            /**
             * Gets the original pattern string.
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 18.5K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/util/PrunedTag.java

                final Matcher matcher = pattern.matcher(v.trim());
                if (matcher.matches()) {
                    final PrunedTag tag = new PrunedTag(matcher.group(1));
                    if (matcher.group(2) != null) {
                        final String attrPair = matcher.group(2).substring(1, matcher.group(2).length() - 1);
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Mon Nov 24 04:23:08 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java

            for (final Map.Entry<Pattern, CrawlerClient> entry : clientMap.entrySet()) {
                final Matcher matcher = entry.getKey().matcher(urlKey);
                if (matcher.matches()) {
                    return entry.getValue();
                }
            }
            return null;
        }
    
        /**
         * Sets the initialization parameter map for all clients.
         * @param params The map of parameters.
         */
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java

            // Get rule after removal
            matched = ruleManager.getRule(responseData);
            assertNull(matched); // No matching rule now
    
            // Add rule4 which matches
            ruleManager.addRule(rule4);
            matched = ruleManager.getRule(responseData);
            assertEquals("rule4", matched.getRuleId());
        }
    
        /**
         * Test rule replacement scenario
         */
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sat Sep 06 04:15:37 GMT 2025
    - 23.8K bytes
    - Click Count (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/RobotsTxtTest.java

            // Should match the more specific directive
            Directive matched = robotsTxt.getMatchedDirective("GoogleBot");
            assertNotNull(matched);
            assertEquals("GoogleBot", matched.getUserAgent());
        }
    
        public void test_getMatchedDirectiveWithPartialMatch() {
            // Test getMatchedDirective with partial pattern match
            RobotsTxt robotsTxt = new RobotsTxt();
    
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Thu Nov 13 13:29:22 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/RobotsTxtHelper.java

         * @param pattern the pattern to match against
         * @param line the line to extract the value from
         * @return the extracted value, or null if no match
         */
        protected String getValue(final Pattern pattern, final String line) {
            final Matcher m = pattern.matcher(line);
            if (m.matches() && m.groupCount() > 0) {
                return m.group(1);
            }
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Fri Nov 14 12:52:01 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/helper/RelatedContentHelper.java

         * Retrieves related content for a given search query.
         * First checks for exact term matches, then evaluates regex patterns.
         * For regex matches, the query placeholder is replaced with the actual query.
         *
         * @param query the search query to find related content for
         * @return array of related content strings, or empty array if no matches found
         */
        public String[] getRelatedContents(final String query) {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  9. cmd/batch-job-common-types.go

    func (kv BatchJobKV) Empty() bool {
    	return kv.Key == "" && kv.Value == ""
    }
    
    // Match matches input kv with kv, value will be wildcard matched depending on the user input
    func (kv BatchJobKV) Match(ikv BatchJobKV) bool {
    	if kv.Empty() {
    		return true
    	}
    	if strings.EqualFold(kv.Key, ikv.Key) {
    		return wildcard.Match(kv.Value, ikv.Value)
    	}
    	return false
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  10. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlFilterServiceTest.java

            // Verify patterns work correctly
            assertTrue(includePatterns.get(0).matcher("http://example.com/page").matches());
            assertTrue(excludePatterns.get(0).matcher("http://example.com/admin/users").matches());
            assertFalse(excludePatterns.get(0).matcher("http://example.com/page").matches());
    
            urlFilterService.delete(sessionId);
        }
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 11.4K bytes
    - Click Count (0)
Back to Top