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

Luca Stancapiano updated CONNECTORS-288:
----------------------------------------

    Attachment: manifold-elasticsearch-patch

In this new patch:

1 - I added a new configuration type: indexType. It is mandatory for operations 
of update. Here an example of update through http:

curl -XPUT http://localhost:9200/${indexName}/${indexType}/_update -d {}

2 - I parse the output message. Here two examples of output messages in 
elasticSearch:

Succesfull:

{"ok":true,"_index":"index","_type":"aa","_id":"_update","_version":1}

I take the field: "ok". If true the operation is succesfull

Error:

{"error":"ElasticSearchParseException[Failed to derive xcontent from (offset=0, 
length=0): []]","status":500}

If there is not the "ok" field, I take the "error" field and I print the value 
as message error
                
> An ElasticSearch connector would be helpful
> -------------------------------------------
>
>                 Key: CONNECTORS-288
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-288
>             Project: ManifoldCF
>          Issue Type: New Feature
>    Affects Versions: ManifoldCF 0.5
>            Reporter: Piergiorgio Lucidi
>            Assignee: Piergiorgio Lucidi
>              Labels: elasticsearch
>             Fix For: ManifoldCF next
>
>         Attachments: manifold-elasticsearch-patch, 
> manifold-elasticsearch-patch, manifoldcf-elasticsearch-project-patct
>
>   Original Estimate: 120h
>  Remaining Estimate: 120h
>
> An ElasticSearch connector could be very useful to spread the use of 
> ManifoldCF

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to