Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 142 for True (0.05 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java

            TestRule rule = new TestRule("rule1", true);
    
            ruleManager.addRule(rule);
    
            assertTrue(ruleManager.hasRule(rule));
            assertEquals(1, ruleManager.getRuleCount());
        }
    
        /**
         * Test adding multiple rules
         */
        public void test_addRule_multiple() {
            TestRule rule1 = new TestRule("rule1", true);
            TestRule rule2 = new TestRule("rule2", false);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 23.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/RegexRule.java

     * rule.addRule("contentType", "text/html");
     * rule.setAllRequired(true); // Both URL and content type must match
     *
     * ResponseData responseData = new ResponseData();
     * responseData.setUrl("https://example.com/page1");
     * responseData.setContentType("text/html");
     *
     * boolean matches = rule.match(responseData); // Returns true
     * }
     * </pre>
     *
     */
    public class RegexRule extends AbstractRule {
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/TextUtilTest.java

            assertEquals("", normalizeText("  ", 100, 2, -1, true));
            assertEquals("", normalizeText("\t", 100, 2, -1, true));
            assertEquals("", normalizeText("\t\t", 100, 2, -1, true));
            assertEquals("", normalizeText("\t \t", 100, 2, -1, true));
            assertEquals("12 ab", normalizeText(" 123 abc ", 100, 2, -1, true));
            assertEquals("123 あいう", normalizeText(" 123 あいう ", 100, 2, -1, true));
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/opensearch/extension/analysis/SynonymLoader.java

                    synchronized (reloadableFile) {
                        if (timestamp != lastModified) {
                            createSynonymMap(true);
                            return true;
                        }
                    }
                }
            }
    
            if (lastModified != time) {
                return true;
            }
    
            return false;
        }
    
        public SynonymMap getSynonymMap() {
            return synonymMap;
        }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sun May 18 02:59:16 UTC 2025
    - 6.7K bytes
    - Viewed (1)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractor.java

            try {
                final File tempFile = File.createTempFile(prefix, suffix, directory);
                tempFile.setReadable(false, false);
                tempFile.setReadable(true, true);
                tempFile.setWritable(false, false);
                tempFile.setWritable(true, true);
                return tempFile;
            } catch (final IOException e) {
                throw new CrawlerSystemException("Could not create a temp file.", e);
            }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/SitemapsHelper.java

        }
    
        /**
         * Checks if the given input stream contains valid sitemap data.
         * @param in the input stream to validate
         * @return true if the stream contains valid sitemap data, false otherwise
         */
        public boolean isValid(final InputStream in) {
            return isValid(in, true);
        }
    
        /**
         * Checks if the given input stream contains valid sitemap data.
         * @param in the input stream to validate
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequest.java

        private final List<String> languages = new ArrayList<>();
    
        private boolean suggestDetail = true;
    
        private ReadingConverter readingConverter;
    
        private Normalizer normalizer;
    
        private float prefixMatchWeight = 2.0f;
    
        private boolean matchWordFirst = true;
    
        private boolean skipDuplicateWords = true;
    
        /**
         * Sets the index name.
         * @param index The index name.
         */
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/SitemapFile.java

        /**
         * Checks if this SitemapFile is equal to another object.
         * @param obj the object to compare with
         * @return true if the objects are equal, false otherwise
         */
        @Override
        public boolean equals(final Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof final SitemapFile sitemapUrl)) {
                return false;
            }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 4.4K bytes
    - Viewed (1)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/CharUtil.java

         * - Uppercase letters (A-Z)
         * - Digits (0-9)
         * - Special characters: . - * _ : / + % = &amp; ? # [ ] @ ~ ! $ ' ( ) , ;
         *
         * @param c the character to check
         * @return {@code true} if the character is a valid URL character, {@code false} otherwise
         */
        public static boolean isUrlChar(final char c) {
            if (c >= 'a' && c <= 'z' //
                    || c >= 'A' && c <= 'Z' //
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 2.3K bytes
    - Viewed (1)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/processor/impl/DefaultResponseProcessor.java

         *
         * @param responseData the response data to check
         * @return true if successful, false otherwise
         */
        protected boolean isSuccessful(final ResponseData responseData) {
            if (successfulHttpCodes == null) {
                return true;
            }
            final int httpStatusCode = responseData.getHttpStatusCode();
            for (final int code : successfulHttpCodes) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 12.5K bytes
    - Viewed (0)
Back to top