You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@manifoldcf.apache.org by "Karl Wright (JIRA)" <ji...@apache.org> on 2013/05/20 20:59:18 UTC

[jira] [Created] (CONNECTORS-690) ElasticSearch connector does not put in a mappings statement but perhaps should

Karl Wright created CONNECTORS-690:
--------------------------------------

             Summary: ElasticSearch connector does not put in a mappings statement but perhaps should
                 Key: CONNECTORS-690
                 URL: https://issues.apache.org/jira/browse/CONNECTORS-690
             Project: ManifoldCF
          Issue Type: Bug
            Reporter: Karl Wright


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.)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira