Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getCrawlerDocumentHtmlCanonicalXpath (0.21 sec)

  1. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

            String xpath = configMap.get(Config.HTML_CANONICAL_XPATH);
            if (xpath == null) {
                xpath = fessConfig.getCrawlerDocumentHtmlCanonicalXpath();
            }
            if (StringUtil.isBlank(xpath)) {
                return null;
            }
            final String canonicalUrl = getSingleNodeValue(document, xpath, node -> node);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 13:01:38 UTC 2024
    - 42.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/crawler/transformer/FessXpathTransformerTest.java

                }
            };
            transformer.fessConfig = new FessConfig.SimpleImpl() {
                private static final long serialVersionUID = 1L;
    
                public String getCrawlerDocumentHtmlCanonicalXpath() {
                    return "//LINK[@rel='canonical'][1]/@href";
                };
            };
    
            final ResponseData responseData = new ResponseData();
            responseData.setSessionId("test");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 13:01:38 UTC 2024
    - 41.3K bytes
    - Viewed (0)
Back to top