Running Elasticsearch server on a mobile device (android / iphone / ios)

I would like to know if Elasticsearch server can be launched on a mobile device (android / iphone / ios), and if so, how should I do it.

In my case, the reason for this is the presence of a standalone database on an easily searchable device (with all the extended elasticsearch functions)

Perhaps I, perhaps, will also use the capabilities of elasticsearch cluster / replication to store offline data on a device that is synchronized with the server.

+7
elasticsearch
source share
5 answers

Well, maybe (at least on Android, for the iPhone the answer is no). Others did not discuss this with confidence that someone had succeeded. Android Dalvik is a JVM, it just lacks some things that are usually not required for mobile applications. Theoretically, you should try to compile ES and run it on Android. However, you are likely to run into problems with missing libraries and apis, which requires ES, so it all depends on how comfortable you are immersed in the ES source code to solve them.

This previous discussion might help, you can try contacting those in the stream to see if someone has managed to achieve:

http://elasticsearch-users.115913.n3.nabble.com/ElasticSearch-HTTP-Server-on-Android-td4056423.html

+4
source share

No, you can not, at least until there is an official assembly that can work on mobile devices.

+2
source share

I am also looking for a full-text search engine for stand-alone first mobile applications.

I haven’t developed anything yet, but I think the easiest solution would be to use the Clucene Library (C ++ version for Lucene) as a full-text search engine instead of ElasticSearch (Lucene-based Java).

In fact, we do not need all the Elasticsearch features for mobile devices, such as a web server, restfull api, etc.

You can find a job at Google:

We are looking for a solution Cordova / Phonegap ...

Hope this helps.

Edit:

I found this tool that provides Offline First features in Javascript. It will work with Cordova / Phone Gap and possibly with ReactNative:

http://elasticlunr.com/

+2
source share

Can't you use regular ajax calls in your application to connect to elasticsearch? I'm not sure if this will be the best way, but the way I do it.

0
source share

There is an ElasticSearch4Android project that seems to be trying to do just that, but I'm not sure if it is not dead. It has only 6 commits 3 years ago.

Perhaps we can put on one shoulder and help him build it.

I will contact the author to find out what is the status of the project.

0
source share

All Articles