Authored by Gino Zhang

suggest中索引增加parameterMake的内容

... ... @@ -18,7 +18,7 @@ import java.util.Set;
@Component
public class ParameterMakeSuggestionDiscoverer extends AbstractSuggestionDiscoverer {
private static final List<String> IGNORE_LIST = Arrays.asList("其他");
private static final List<String> IGNORE_LIST = Arrays.asList("其他","正常");
@Autowired
private ParameterMakeService parameterMakeService;
... ... @@ -35,8 +35,10 @@ public class ParameterMakeSuggestionDiscoverer extends AbstractSuggestionDiscove
List<ParameterMake> parameterMakeList = parameterMakeService.selectPageLists(start, batchSize);
if (CollectionUtils.isNotEmpty(parameterMakeList)) {
for (ParameterMake pm : parameterMakeList) {
if(!IGNORE_LIST.contains(pm.getParameterValue())){
parameterValueSet.add(pm.getParameterValue());
if(pm.getParameterValue() != null && pm.getParameterValue().length() > 1 && !IGNORE_LIST.contains(pm.getParameterValue())){
for(String item : pm.getParameterValue().split("\\/")){
parameterValueSet.add(item);
}
}
}
}
... ... @@ -48,4 +50,8 @@ public class ParameterMakeSuggestionDiscoverer extends AbstractSuggestionDiscove
public KeywordType getKeywordType() {
return KeywordType.ParameterMake;
}
public static void main(String[] args) {
System.out.println(Arrays.asList("羊毛/羊绒".split("\\/")));
}
}
... ...