Authored by 胡古飞

fix bug

... ... @@ -73,7 +73,7 @@ public class PersonalVectorFeatureSearch {
Map<String, Object> scriptParams = new HashMap<>();
scriptParams.put("field", "productFeatureFactor");
String [] productVectorFeatures = productVectorFeature.split("|",2);
String [] productVectorFeatures = productVectorFeature.split("\\|",2);
if(productVectorFeatures.length!=2){
return;
}
... ... @@ -172,4 +172,5 @@ public class PersonalVectorFeatureSearch {
double finalScore = BASE_CONSTANT + FACTOR_CONSTANT * cosScore;
return finalScore;
}
}
... ...