Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
ManifoldCF 1.2
-
None
Description
According to http://www.elasticsearch.org/guide/reference/mapping/attachment-type/ it seems that the connector should use a mapping command to set the ‘file’ property with a type of ‘attachment’, with “_content_type” and “_name” fields as subfields of the ‘file’ property. Also, through testing I found that if you want the ‘date’, ‘title’, ‘author’, and ‘keywords’ fields extracted from the document and saved, they need to be listed in the mapping too. (Unfortunately, using a mapping changes the JSON code for adding the document to the index. Instead of sending the base64 encoded file attached to the ‘file’ field, it’s attached to the ‘contents’ subfield.)