فهرست منبع

tess4j引起jvm退出

roo00 6 سال پیش
والد
کامیت
9a6e66459f

+ 16 - 1
o2server/x_query_core_entity/src/main/java/com/x/query/core/entity/segment/Word.java

@@ -109,7 +109,14 @@ public class Word extends SliceJpaObject {
 	@Column(length = JpaObject.length_64B, name = ColumnNamePrefix + tag_FIELDNAME)
 	@Column(length = JpaObject.length_64B, name = ColumnNamePrefix + tag_FIELDNAME)
 	@CheckPersist(allowEmpty = true)
 	@CheckPersist(allowEmpty = true)
 	private String tag;
 	private String tag;
-	
+
+	public static final String application_FIELDNAME = "application";
+	@FieldDescribe("porcessPlatform中对应application应用,在cms中对应application栏目")
+	@Column(length = length_id, name = ColumnNamePrefix + application_FIELDNAME)
+	@Index(name = TABLE + IndexNameMiddle + application_FIELDNAME)
+	@CheckPersist(allowEmpty = true)
+	private String application;
+
 	public String getLabel() {
 	public String getLabel() {
 		return label;
 		return label;
 	}
 	}
@@ -166,4 +173,12 @@ public class Word extends SliceJpaObject {
 		this.bundle = bundle;
 		this.bundle = bundle;
 	}
 	}
 
 
+	public String getApplication() {
+		return application;
+	}
+
+	public void setApplication(String application) {
+		this.application = application;
+	}
+
 }
 }

+ 1 - 1
o2server/x_query_core_express/src/main/java/com/x/query/core/express/plan/Row.java

@@ -30,7 +30,7 @@ public class Row extends GsonPropertyObject {
 	public Double getAsDouble(String key) {
 	public Double getAsDouble(String key) {
 		Object o = this.data.get(key);
 		Object o = this.data.get(key);
 		String val = Objects.toString(o, "");
 		String val = Objects.toString(o, "");
-		if (NumberUtils.isNumber(val)) {
+		if (NumberUtils.isCreatable(val)) {
 			return NumberUtils.toDouble(val);
 			return NumberUtils.toDouble(val);
 		} else {
 		} else {
 			return 0d;
 			return 0d;

+ 2 - 1
o2server/x_query_service_processing/src/main/java/com/x/query/service/processing/schedule/Crawl.java

@@ -38,9 +38,10 @@ public abstract class Crawl implements Job {
 					StorageMapping mapping = ThisApplication.context().storageMappings().get(Attachment.class,
 					StorageMapping mapping = ThisApplication.context().storageMappings().get(Attachment.class,
 							storageObject.getStorage());
 							storageObject.getStorage());
 					if (null != mapping) {
 					if (null != mapping) {
+						/* 忽略设置强制不索引图片 */
 						return ExtractTextTools.extract(storageObject.readContent(mapping), storageObject.getName(),
 						return ExtractTextTools.extract(storageObject.readContent(mapping), storageObject.getName(),
 								Config.query().getExtractOffice(), Config.query().getExtractPdf(),
 								Config.query().getExtractOffice(), Config.query().getExtractPdf(),
-								Config.query().getExtractText(), Config.query().getExtractImage());
+								Config.query().getExtractText(), false);
 					} else {
 					} else {
 						logger.print(
 						logger.print(
 								"storageMapping is null can not extract storageObject text, storageObject:{}, name:{}.",
 								"storageMapping is null can not extract storageObject text, storageObject:{}, name:{}.",