Browse Source

修改品牌转换方法

dongbw 9 years ago
parent
commit
15b7e6a597

+ 3 - 3
search-console-b2b/src/main/java/com/uas/search/console/b2b/util/ObjectToDocumentUtils.java

@@ -1908,17 +1908,17 @@ public class ObjectToDocumentUtils {
 		if (null != productBrandSimpleInfo.getNameCn()) {
 			document.add(
 					new StringField(ClassAndTableNameUtils.combineField(tableName, ProductBrandSimpleInfo.NAMECN_FIELD),
-							JSON.toJSONString(productBrandSimpleInfo.getNameCn()), Store.YES));
+							productBrandSimpleInfo.getNameCn(), Store.YES));
 		}
 		if (null != productBrandSimpleInfo.getNameEn()) {
 			document.add(
 					new StringField(ClassAndTableNameUtils.combineField(tableName, ProductBrandSimpleInfo.NAMEEN_FIELD),
-							JSON.toJSONString(productBrandSimpleInfo.getNameEn()), Store.YES));
+							productBrandSimpleInfo.getNameEn(), Store.YES));
 		}
 		if (null != productBrandSimpleInfo.getVendor()) {
 			document.add(
 					new StringField(ClassAndTableNameUtils.combineField(tableName, ProductBrandSimpleInfo.VENDOR_FIELD),
-							JSON.toJSONString(productBrandSimpleInfo.getVendor()), Store.YES));
+							productBrandSimpleInfo.getVendor(), Store.YES));
 		}
 
 		// 排序字段