|
@@ -66,12 +66,13 @@ public class ElasticSearchServiceImpl implements IElasticSearchService {
|
|
|
Map<String, Function<byte[], String>> handlerMap = createHandlerMap(fileType);
|
|
|
String content = getContent(handlerMap, fileType, info.getFileId());
|
|
|
|
|
|
- if (Constants.PDF_EXTENSION.contains(fileType) && StringUtils.isEmpty(content)) {
|
|
|
- //如果是PDF未解析成功,则另外进行解析工作
|
|
|
- DocIndex di = new DocIndex(info);
|
|
|
- indexService.insertDocIndex(di);
|
|
|
- return;
|
|
|
- }
|
|
|
+// if (Constants.PDF_EXTENSION.contains(fileType) && StringUtils.isEmpty(content)) {
|
|
|
+// //如果是PDF未解析成功,则另外进行解析工作
|
|
|
+// //TODO 暂时取消该功能
|
|
|
+//// DocIndex di = new DocIndex(info);
|
|
|
+//// indexService.insertDocIndex(di);
|
|
|
+// return;
|
|
|
+// }
|
|
|
|
|
|
if (StringUtils.isNotEmpty(content)) {
|
|
|
comboIndex(info.getSpaceId());
|