适用于iOS的Elasticsearch客户端 [英] Elasticsearch client for iOS

查看:100
本文介绍了适用于iOS的Elasticsearch客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道iOS的Elasticsearch客户端库吗?

Does anyone know of an elasticsearch client library for iOS? Would be a bonus if it was written in swift as well.

弹性搜索客户端部分显示了多个平台的多个库,但iOS却没有。

The elastic search 'clients' section shows multiple libraries for a number of platforms but nothing for iOS, I feel like someone must have done this?

干杯

推荐答案

任何人都有-上一次我检查没有,并且有充分的理由。请记住,为了允许IOS客户端(或Android)使用客户端库连接到Elasticsearch,您必须打开集群以进行http或节点访问-任何人都可以做集群中的任何内容。

I doubt that anyone has - last time I checked there were none and for good reasons. Keep in mind that in order to allow an IOS client (or Android for that matter) to use a client library to connect to Elasticsearch you'd have to open up your cluster for either an http or node access - which would allow anyone to do anything to your cluster.

也许您可以代理它以防止删除和插入,但是即使这样,它也可以打开群集的数据并向您开放DoS攻击。

Maybe you could proxy it to prevent deletions and insertions but even so it would open up your cluster's data and open you up to DoS attacks.

通常,更好的主意是创建自己的REST API,该API结合了某些类型的身份验证和授权,并且不会向世界开放您的集群。

Generally a better idea is to create your own REST API that incorporates some type of authentication and authorization and does not open up your cluster to the world.

如果您仍然对前进充满信心,可以随时访问REST API for ES的http界面。或看看有人几年前从事的这个项目,至少可以让您早日入门:

If you still feel strongly about moving forward you can always just hit the http interface of the REST API for ES. Or take a look at this project someone was working on a few years ago at least to give you a head start:

https://github.com/tallpsmith/ElasticSearchIOSHead

有关此主题的一些近期讨论:

Some recent discussions on this topic:

http://elasticsearch-users.115913.n3.nabble.com/Objective-C-client-for-ElasticSearch-iphone-ipad-etc-td3911216.html

在移动设备(android / iphone / ios)上运行Elasticsearch服务器

这篇关于适用于iOS的Elasticsearch客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆