...
|
...
|
@@ -15,7 +15,6 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
...
|
...
|
@@ -45,13 +44,15 @@ public class SearchScorerFactory { |
|
|
return null;
|
|
|
}
|
|
|
if (!searchCommonHelper.isFuzzySearchPageDefault(paramMap)) {
|
|
|
return new UfoProductScorer(0.5f);
|
|
|
//return new UfoProductScorer(0.5f);
|
|
|
return null;
|
|
|
}
|
|
|
String query = MapUtils.getString(paramMap,SearchRequestParams.PARAM_SEARCH_QUERY,"");
|
|
|
if(dynamicConfig.ufoProductFirstBySearchKeyWord(query)){
|
|
|
String query = MapUtils.getString(paramMap, SearchRequestParams.PARAM_SEARCH_QUERY, "");
|
|
|
if (dynamicConfig.ufoProductFirstBySearchKeyWord(query)) {
|
|
|
return new UfoProductScorer(20f);
|
|
|
}else{
|
|
|
return new UfoProductScorer(0.5f);
|
|
|
} else {
|
|
|
//return new UfoProductScorer(0.5f);
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|