fix #1580 remove deprecated fields
This commit is contained in:
parent
18188ff891
commit
86d94566f1
2 changed files with 1 additions and 15 deletions
|
@ -81,9 +81,6 @@ public class FessXpathTransformer extends XpathTransformer implements FessTransf
|
|||
|
||||
private static final String HTML_CANONICAL_XPATH = "html.canonical.xpath";
|
||||
|
||||
@Deprecated
|
||||
private static final String IGNORE_META_ROBOTS = "ignore.meta.robots";
|
||||
|
||||
private static final String IGNORE_ROBOTS_TAGS = "ignore.robots.tags";
|
||||
|
||||
private static final String META_NAME_THUMBNAIL_CONTENT = "//META[@name=\"thumbnail\" or @name=\"THUMBNAIL\"]/@content";
|
||||
|
@ -204,12 +201,7 @@ public class FessXpathTransformer extends XpathTransformer implements FessTransf
|
|||
final Map<String, String> configMap = getConfigPrameterMap(responseData, ConfigName.CONFIG);
|
||||
String ignore = configMap.get(IGNORE_ROBOTS_TAGS);
|
||||
if (ignore == null) {
|
||||
ignore = configMap.get(IGNORE_META_ROBOTS);
|
||||
if (ignore == null) {
|
||||
if (fessConfig.isCrawlerIgnoreRobotsTags()) {
|
||||
return;
|
||||
}
|
||||
} else if (Boolean.parseBoolean(ignore)) {
|
||||
if (fessConfig.isCrawlerIgnoreRobotsTags()) {
|
||||
return;
|
||||
}
|
||||
} else if (Boolean.parseBoolean(ignore)) {
|
||||
|
|
|
@ -102,12 +102,6 @@ public class ViewHelper {
|
|||
@Resource
|
||||
protected UserAgentHelper userAgentHelper;
|
||||
|
||||
@Deprecated
|
||||
public int titleLength = 50;
|
||||
|
||||
@Deprecated
|
||||
public int sitePathLength = 50;
|
||||
|
||||
public boolean encodeUrlLink = false;
|
||||
|
||||
public String urlLinkEncoding = Constants.UTF_8;
|
||||
|
|
Loading…
Add table
Reference in a new issue