This commit is contained in:
Shinsuke Sugaya 2014-06-19 06:38:46 +09:00
parent dd94854d9e
commit 7f893ddf43
2 changed files with 8 additions and 8 deletions

View file

@ -175,8 +175,6 @@ public abstract class AbstractFessFileTransformer extends
final Date documentExpires = crawlingSessionHelper.getDocumentExpires();
final PathMappingHelper pathMappingHelper = ComponentUtil
.getPathMappingHelper();
final String url = pathMappingHelper.replaceUrl(sessionId,
responseData.getUrl());
final SambaHelper sambaHelper = ComponentUtil.getSambaHelper();
final DynamicProperties crawlerProperties = ComponentUtil
.getCrawlerProperties();
@ -189,6 +187,9 @@ public abstract class AbstractFessFileTransformer extends
.get(responseData.getSessionId());
final SystemHelper systemHelper = ComponentUtil.getSystemHelper();
final FileTypeHelper fileTypeHelper = ComponentUtil.getFileTypeHelper();
String url = responseData.getUrl();
final String indexingTarget = crawlingConfig.getIndexingTarget(url);
url = pathMappingHelper.replaceUrl(sessionId, url);
final Map<String, String> fieldConfigMap = crawlingConfig
.getConfigParameterMap(ConfigName.FIELD);
@ -289,8 +290,7 @@ public abstract class AbstractFessFileTransformer extends
putResultDataBody(dataMap, "lastModified",
FessFunctions.formatDate(responseData.getLastModified()));
// indexingTarget
putResultDataBody(dataMap, Constants.INDEXING_TARGET,
crawlingConfig.getIndexingTarget(url));
putResultDataBody(dataMap, Constants.INDEXING_TARGET, indexingTarget);
// boost
putResultDataBody(dataMap, "boost", crawlingConfig.getDocumentBoost());
// label: labelType

View file

@ -213,14 +213,15 @@ public class FessXpathTransformer extends AbstractFessXpathTransformer {
final Date documentExpires = crawlingSessionHelper.getDocumentExpires();
final PathMappingHelper pathMappingHelper = ComponentUtil
.getPathMappingHelper();
final String url = pathMappingHelper.replaceUrl(sessionId,
responseData.getUrl());
final CrawlingConfigHelper crawlingConfigHelper = ComponentUtil
.getCrawlingConfigHelper();
final CrawlingConfig crawlingConfig = crawlingConfigHelper
.get(responseData.getSessionId());
final SystemHelper systemHelper = ComponentUtil.getSystemHelper();
final FileTypeHelper fileTypeHelper = ComponentUtil.getFileTypeHelper();
String url = responseData.getUrl();
final String indexingTarget = crawlingConfig.getIndexingTarget(url);
url = pathMappingHelper.replaceUrl(sessionId, url);
final Map<String, String> fieldConfigMap = crawlingConfig
.getConfigParameterMap(ConfigName.FIELD);
@ -304,8 +305,7 @@ public class FessXpathTransformer extends AbstractFessXpathTransformer {
putResultDataBody(dataMap, "lastModified",
FessFunctions.formatDate(responseData.getLastModified()));
// indexingTarget
putResultDataBody(dataMap, Constants.INDEXING_TARGET,
crawlingConfig.getIndexingTarget(url));
putResultDataBody(dataMap, Constants.INDEXING_TARGET, indexingTarget);
// boost
putResultDataBody(dataMap, "boost", crawlingConfig.getDocumentBoost());
// label: labelType