modify old names
This commit is contained in:
parent
35dd5d95b1
commit
41d9723571
2 changed files with 2 additions and 8 deletions
|
@ -178,7 +178,7 @@ public class ViewHelper implements Serializable {
|
|||
if (useHighlight) {
|
||||
return escapeHighlight(text);
|
||||
} else {
|
||||
return highlight(LaFunctions.h(StringUtils.abbreviate(removeSolrHighlightTag(text), size)), queries);
|
||||
return highlight(LaFunctions.h(StringUtils.abbreviate(removeHighlightTag(text), size)), queries);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ public class ViewHelper implements Serializable {
|
|||
.replaceAll(escapedHighlightPost, originalHighlightTagPost);
|
||||
}
|
||||
|
||||
protected String removeSolrHighlightTag(final String str) {
|
||||
protected String removeHighlightTag(final String str) {
|
||||
return str.replaceAll(originalHighlightTagPre, StringUtil.EMPTY).replaceAll(originalHighlightTagPost, StringUtil.EMPTY);
|
||||
}
|
||||
|
||||
|
|
|
@ -132,8 +132,6 @@ public final class ComponentUtil {
|
|||
|
||||
private static final String CRAWLER_PROPERTIES = "systemProperties";
|
||||
|
||||
private static final String PROPERTIES_SUFFIX = "Properties";
|
||||
|
||||
private static final String QUERY_RESPONSE_LIST = "queryResponseList";
|
||||
|
||||
private static final String JOB_EXECUTOR_SUFFIX = "JobExecutor";
|
||||
|
@ -161,10 +159,6 @@ public final class ComponentUtil {
|
|||
return getComponent(QUERY_RESPONSE_LIST);
|
||||
}
|
||||
|
||||
public static DynamicProperties getSolrGroupProperties(final String groupName) {
|
||||
return getComponent(groupName + PROPERTIES_SUFFIX);
|
||||
}
|
||||
|
||||
public static DynamicProperties getSystemProperties() {
|
||||
return getComponent(CRAWLER_PROPERTIES);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue