Ver Fonte

供应商资料搜索增加我方联系人搜索

hejq há 8 anos atrás
pai
commit
6fcb5e80af

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

@@ -2322,12 +2322,11 @@ public class ObjectToDocumentUtils {
 					JSON.toJSONString(vendorSimpleInfo.getVend()), Store.YES));
 		}
 		if (null != vendorSimpleInfo.getMyUser()) {
-			document.add(new StringField(ClassAndTableNameUtils.combineField(tableName, VendorSimpleInfo.MYUSER_FIELD),
+			document.add(new TextField(ClassAndTableNameUtils.combineField(tableName, VendorSimpleInfo.MYUSER_FIELD),
 					JSON.toJSONString(vendorSimpleInfo.getMyUser()), Store.YES));
 		}
 		if (null != vendorSimpleInfo.getVendUser()) {
-			document.add(
-					new StringField(ClassAndTableNameUtils.combineField(tableName, VendorSimpleInfo.VENDUSER_FIELD),
+			document.add(new TextField(ClassAndTableNameUtils.combineField(tableName, VendorSimpleInfo.VENDUSER_FIELD),
 							JSON.toJSONString(vendorSimpleInfo.getVendUser()), Store.YES));
 		}
 		if (null != vendorSimpleInfo.getCustswitch()) {
@@ -2378,12 +2377,11 @@ public class ObjectToDocumentUtils {
 					JSON.toJSONString(custmerSimpleInfo.getVend()), Store.YES));
 		}
 		if (null != custmerSimpleInfo.getMyUser()) {
-			document.add(new StringField(ClassAndTableNameUtils.combineField(tableName, CustmerSimpleInfo.MYUSER_FIELD),
+			document.add(new TextField(ClassAndTableNameUtils.combineField(tableName, CustmerSimpleInfo.MYUSER_FIELD),
 					JSON.toJSONString(custmerSimpleInfo.getMyUser()), Store.YES));
 		}
 		if (null != custmerSimpleInfo.getVendUser()) {
-			document.add(
-					new StringField(ClassAndTableNameUtils.combineField(tableName, CustmerSimpleInfo.VENDUSER_FIELD),
+			document.add(new TextField(ClassAndTableNameUtils.combineField(tableName, CustmerSimpleInfo.VENDUSER_FIELD),
 							JSON.toJSONString(custmerSimpleInfo.getVendUser()), Store.YES));
 		}
 		if (null != custmerSimpleInfo.getCustswitch()) {