[teiid-issues] [JBoss JIRA] (TEIID-3314) Add translator for Elasticsearch

Tom Arnold (JIRA) issues at jboss.org
Fri Oct 30 12:27:00 EDT 2015


    [ https://issues.jboss.org/browse/TEIID-3314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123922#comment-13123922 ] 

Tom Arnold commented on TEIID-3314:
-----------------------------------

Van, after looking into this a little bit more I agree the REST would be a better approach than using the Java client.

We put together a quick internal prototype using the Java client and there were a couple of downsides.
* No way to do authentication. Most people seem to put ES behind Apache/Nginx to add basic auth, but this is not possible using the Java client (at least, not without using an addon like Shield).
* The module was 40-50mb because it included Lucene. It's possible that this could be stripped down slightly.
* Unclear if this approach would be portable between different server versions, since the Java client is essentially another server node in the cluster AFAICT.

We used the mappings API for metadata. One issue we ran into here is that ES does not distinguish between scalar and array values, so handling these fields automatically is difficult. TEIID-3349 might help here, or perhaps taking an approach similar to the Accumulo translator (query first record and then parse metadata from that).

> Add translator for Elasticsearch
> --------------------------------
>
>                 Key: TEIID-3314
>                 URL: https://issues.jboss.org/browse/TEIID-3314
>             Project: Teiid
>          Issue Type: Feature Request
>          Components: Misc. Connectors
>            Reporter: Tom Arnold
>              Labels: spatial
>             Fix For: Open To Community
>
>
> Elasticseach is an open source search server based on Lucene.
> Use case would be similar to that of SOLR. There is a (slightly outdated) comparsion between the two here: http://solr-vs-elasticsearch.com/.
> Java API docs are here: http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/index.html
> Filter DSL documentation is here: http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/index.html
> JBoss EAP 6 module docs: http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/_deploying_in_jboss_eap6_module.html
> It supports several types of spatial filters:
> * Bounding box
> * Polygon
> * Shape - This is based on JTS; I think the difference between this and Polygon is this allows options like WITHIN/INTERSECTS/DISJOINT.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the teiid-issues mailing list