Elasticsearch 2.4.3在创建文档索引期间遇到.docx文件问题

时间:2017-01-03 08:41:19

标签: c# asp.net elasticsearch nest elasticsearch-plugin

提前致谢

我是elasticsearch的新手,并使用elasticsearch 2.4.3。当我索引文档然后.doc,pdf,txt,xls工作正常,但当我尝试使用.docx文件时,它正在创建问题。

以下是我得到的回复,显示成功,但在回复部分,我们正在创建:false

Successful low level call on PUT: /ilemsdocuments/indexeddocument/F%3A%5CIndexTestSamples%5CIndexTestSamples%5CBaconNarrative.docx?pretty=true
# Audit trail of this API call:
 - [1] HealthyResponse: Node: http://localhost:9200/ Took: 00:00:00.1688474


         # Request:
        {
        "activityNumber": "2016-001390",
        "activityOccurrenceDate": "2016-03-09T00:00:00",
        "activityPrepDate": "2016-01-26T00:00:00",
        "activityReportDate": "2016-01-08T00:00:00",
        "author": "Bard Laabs",
        "category": "Interviews",
        "dataOwnerDatabase": "main",
        "dataOwnerDisk": "main",
        "databaseLastUpdate": "2016-03-28T00:00:00",
        "documentEntityId":   "F:\\IndexTestSamples\\IndexTestSamples\\BaconNarrative.docx",
      "file": {
        "_content": "-- Remove the actual content as its size is big",
        "_indexed_chars": -1
      },
      "fileExtension": "docx",
      "fileFullName": "F:\\IndexTestSamples\\IndexTestSamples\\BaconNarrative.docx",
      "indexedFileInfo": {
        "creationTime": "2016-09-09T12:50:32+05:30",
        "fullName": "F:\\IndexTestSamples\\IndexTestSamples\\BaconNarrative.docx",
        "lastIndexTime": "2017-01-03T11:55:20.6993801+05:30",
        "lastWriteTime": "2017-01-03T11:52:18.1251173+05:30",
        "length": 14479
      },
      "fileLastUpdate": "2017-01-03T11:52:18.1251173+05:30",
      "fileName": "BaconNarrative.docx",
      "indexDate": "2017-01-03T11:55:20.6993801+05:30",
      "indexSource": "IndexingAgent.FileWatcher",
      "indexedPath": "F:\\IndexTestSamples\\IndexTestSamples",
      "isLocked": false,
      "isNarrative": false,
      "mimeType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
      "title": "My Document: 2017-01-03T11:55:22.3480831+05:30",
      "uploadedBy": "testuser"
    }



     # Response:
        {
        "_index" : "ilemsdocuments",
        "_type" : "indexeddocument",
        "_id" : "F:\\IndexTestSamples\\IndexTestSamples\\BaconNarrative.docx",
        "_version" : 3,
        "_shards" : {
          "total" : 2,
          "successful" : 1,
          "failed" : 0
         },
        "created" : false
        }

如果有人遇到这个问题,请帮助我。

0 个答案:

没有答案