|
|
@@ -3,7 +3,6 @@ package com.uas.search.util;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.uas.search.constant.SearchConstants;
|
|
|
import com.uas.search.model.*;
|
|
|
-import net.sf.ehcache.search.SearchException;
|
|
|
import org.apache.lucene.document.*;
|
|
|
import org.apache.lucene.document.Field.Store;
|
|
|
import org.apache.lucene.util.BytesRef;
|
|
|
@@ -56,7 +55,7 @@ public class ObjectToDocumentUtils {
|
|
|
} else if (object instanceof PurchaseInvoice) {
|
|
|
return toDocument((PurchaseInvoice) object);
|
|
|
} else {
|
|
|
- throw new SearchException("不支持将以下类型转换为Document:" + object.getClass().getName());
|
|
|
+ throw new IllegalArgumentException("不支持将以下类型转换为Document:" + object.getClass().getName());
|
|
|
}
|
|
|
}
|
|
|
|