Authored by wangnan

【图片搜索】 修改脚本名

@@ -174,7 +174,7 @@ public class SknImageVectorsServiceImpl implements ISknImageVectorsService, Appl @@ -174,7 +174,7 @@ public class SknImageVectorsServiceImpl implements ISknImageVectorsService, Appl
174 params.put("f", VECTORS_KEY); 174 params.put("f", VECTORS_KEY);
175 params.put("fea", fea); 175 params.put("fea", fea);
176 params.put("verbose", true); 176 params.put("verbose", true);
177 - String inlineScript = "hamming_score"; 177 + String inlineScript = "yoho_hamming_score";
178 Script script = new Script(inlineScript, ScriptService.ScriptType.INLINE, "native", params); 178 Script script = new Script(inlineScript, ScriptService.ScriptType.INLINE, "native", params);
179 ScriptScoreFunctionBuilder scriptBuilder = ScoreFunctionBuilders.scriptFunction(script); 179 ScriptScoreFunctionBuilder scriptBuilder = ScoreFunctionBuilders.scriptFunction(script);
180 //function_score 180 //function_score