Showing
1 changed file
with
2 additions
and
1 deletions
@@ -73,7 +73,7 @@ public class PersonalVectorFeatureSearch { | @@ -73,7 +73,7 @@ public class PersonalVectorFeatureSearch { | ||
73 | Map<String, Object> scriptParams = new HashMap<>(); | 73 | Map<String, Object> scriptParams = new HashMap<>(); |
74 | scriptParams.put("field", "productFeatureFactor"); | 74 | scriptParams.put("field", "productFeatureFactor"); |
75 | 75 | ||
76 | - String [] productVectorFeatures = productVectorFeature.split("|",2); | 76 | + String [] productVectorFeatures = productVectorFeature.split("\\|",2); |
77 | if(productVectorFeatures.length!=2){ | 77 | if(productVectorFeatures.length!=2){ |
78 | return; | 78 | return; |
79 | } | 79 | } |
@@ -172,4 +172,5 @@ public class PersonalVectorFeatureSearch { | @@ -172,4 +172,5 @@ public class PersonalVectorFeatureSearch { | ||
172 | double finalScore = BASE_CONSTANT + FACTOR_CONSTANT * cosScore; | 172 | double finalScore = BASE_CONSTANT + FACTOR_CONSTANT * cosScore; |
173 | return finalScore; | 173 | return finalScore; |
174 | } | 174 | } |
175 | + | ||
175 | } | 176 | } |
-
Please register or login to post a comment