fix es goods search category name length does not match category path length
This commit is contained in:
parent
d4c9b0f147
commit
e5e809ed72
@ -164,6 +164,7 @@ public class EsGoodsSearchServiceImpl implements EsGoodsSearchService {
|
||||
}
|
||||
String[] split = ArrayUtil.distinct(categoryPath.split(","));
|
||||
String[] nameSplit = categoryNamePath.split(",");
|
||||
if (split.length == nameSplit.length) {
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
SelectorOptions so = new SelectorOptions();
|
||||
so.setName(nameSplit[i]);
|
||||
@ -172,7 +173,7 @@ public class EsGoodsSearchServiceImpl implements EsGoodsSearchService {
|
||||
categoryOptions.add(so);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
esGoodsRelatedInfo.setCategories(categoryOptions);
|
||||
|
Loading…
x
Reference in New Issue
Block a user