Authored by wangnan

fix

eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/test/java=UTF-8
encoding/<project>=UTF-8
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.8
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="search-consumer-index">
<wb-resource deploy-path="/" source-path="/src/main/java"/>
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
</wb-module>
</project-modules>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<installed facet="java" version="1.8"/>
<installed facet="jst.utility" version="1.0"/>
</faceted-project>
disabled=06target
eclipse.preferences.version=1
Manifest-Version: 1.0
Class-Path:
... ... @@ -9,7 +9,7 @@ public class CostStatistics {
private List<Long> statistics = new ArrayList<Long>();
private long toalCost = 0;
private long totalCost = 0;
public CostStatistics(){
this.begin = System.currentTimeMillis();
... ... @@ -18,14 +18,14 @@ public class CostStatistics {
public long getCost(){
long current = System.currentTimeMillis();
long cost = current - begin;
toalCost = toalCost + cost;
totalCost = totalCost + cost;
begin = current;
statistics.add(cost);
return cost;
}
public long getTotalCost(){
return toalCost;
return totalCost;
}
public List<Long> getCostStatistics(){
... ...
... ... @@ -15,24 +15,21 @@ public class DynamicConfigService {
/**
* 全球购融合到有货是否开启
*
* @return
*/
public boolean isTblToYohoOpen() {
return configReader.getBoolean("search.degrade.consumer.adaptor.tbltoyoho.open", false);
}
public boolean suggestKeywordTypeOpen(KeywordType keywordType) {
String globleEnabledKey = keywordType.getGlobleEnabledKey();
if (StringUtils.isBlank(globleEnabledKey)) {
String globalEnabledKey = keywordType.getGlobleEnabledKey();
if (StringUtils.isBlank(globalEnabledKey)) {
return true;
}
return configReader.getBoolean(globleEnabledKey, true);
return configReader.getBoolean(globalEnabledKey, true);
}
/**
* 是否打开搜索无结果或结果太少时的搜索词建议功能
* @return
*/
public boolean isIncreasementSpiderOpen(){
return configReader.getBoolean("search.suggestion.increasement.spider.open", true);
... ...
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/webapp"/>
<classpathentry kind="src" path="target/m2e-wtp/web-resources"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/test/java=UTF-8
encoding//src/test/resources=UTF-8
encoding/<project>=UTF-8
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.8
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="yoho-search-consumer-web">
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<dependent-module archiveName="yoho-core-dal-1.2.3-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/yoho-core-dal/yoho-core-dal">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="yoho-core-common-1.2.3-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/yoho-core-common/yoho-core-common">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="yoho-core-config-1.2.3-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/yoho-core-config/yoho-core-config">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="search-consumer-dal-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/search-consumer-dal/search-consumer-dal">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="search-personalized-2.0.3-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/search-personalized/search-personalized">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="search-es-2.0.3-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/search-es/search-es">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="yoho-core-redis-1.2.3-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/yoho-core-redis/yoho-core-redis">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="search-consumer-service-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/search-consumer-service/search-consumer-service">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="search-base-2.0.3-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/search-base/search-base">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="yoho-core-alarm-1.2.3-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/yoho-core-alarm/yoho-core-alarm">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="search-consumer-index-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/search-consumer-index/search-consumer-index">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="search-consumer-spider-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/search-consumer-spider/search-consumer-spider">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="context-root" value="yoho-search-consumer-web"/>
<property name="java-output-path" value="/yoho-search-consumer-web/target/classes"/>
</wb-module>
</project-modules>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="1.8"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
disabled=06target
eclipse.preferences.version=1