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/29 10:06:20 UTC

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

     [ https://issues.apache.org/jira/browse/CONNECTORS-690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Wright resolved CONNECTORS-690.
------------------------------------

    Resolution: Fixed
    
> 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
>          Components: Elastic Search connector
>    Affects Versions: ManifoldCF 1.2
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 1.3
>
>
> 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