|
|
@@ -57,6 +57,8 @@ public class ObjectToDocumentUtils {
|
|
|
return toDocument((BrandSimpleInfo) object);
|
|
|
} else if (object instanceof ComponentSimpleInfo) {
|
|
|
return toDocument((ComponentSimpleInfo) object);
|
|
|
+ } else if (object instanceof GoodsSimpleInfo) {
|
|
|
+ return toDocument((GoodsSimpleInfo) object);
|
|
|
} else if (object instanceof OrderSimpleInfo) {
|
|
|
return toDocument((OrderSimpleInfo) object);
|
|
|
} else if (object instanceof OrderInvoiceSimpleInfo) {
|
|
|
@@ -202,10 +204,14 @@ public class ObjectToDocumentUtils {
|
|
|
if (goods.getGoMinPriceRMB() != null) {
|
|
|
document.add(
|
|
|
new DoubleDocValuesField(SearchConstants.GOODS_GO_MINPRICERMB_FIELD, goods.getGoMinPriceRMB()));
|
|
|
+ document.add(
|
|
|
+ new DoubleField(SearchConstants.GOODS_GO_MINPRICERMB_FIELD, goods.getGoMinPriceRMB(), Store.YES));
|
|
|
}
|
|
|
if (goods.getGoMinPriceUSD() != null) {
|
|
|
document.add(
|
|
|
new DoubleDocValuesField(SearchConstants.GOODS_GO_MINPRICEUSD_FIELD, goods.getGoMinPriceUSD()));
|
|
|
+ document.add(
|
|
|
+ new DoubleField(SearchConstants.GOODS_GO_MINPRICEUSD_FIELD, goods.getGoMinPriceUSD(), Store.YES));
|
|
|
}
|
|
|
if (goods.getCrName() != null) {
|
|
|
document.add(new TextField(SearchConstants.GOODS_CRNAME_FIELD, goods.getCrName(), Store.YES));
|
|
|
@@ -214,11 +220,10 @@ public class ObjectToDocumentUtils {
|
|
|
if (goods.getStore() != null) {
|
|
|
StoreSimpleInfo store = goods.getStore();
|
|
|
if (store.getUuid() != null) {
|
|
|
- document.add(
|
|
|
- new StringField(SearchConstants.GOODS_ST_ID_FIELD, String.valueOf(store.getUuid()), Store.YES));
|
|
|
+ document.add(new TextField(SearchConstants.GOODS_ST_UUID_FIELD, store.getUuid(), Store.YES));
|
|
|
}
|
|
|
if (store.getType() != null) {
|
|
|
- document.add(new StringField(SearchConstants.GOODS_ST_TYPE_FIELD, store.getType(), Store.YES));
|
|
|
+ document.add(new TextField(SearchConstants.GOODS_ST_TYPE_FIELD, store.getType(), Store.YES));
|
|
|
}
|
|
|
}
|
|
|
|