问题描述
I would like to use SOLR to do search on my android app. Is this something that I can do? If so could you please point me to some code samples out there? Thanks
推荐答案
Depends. Solr is a quite heavy server application, it's not really suited to run on an Android device.
You'll want to run Solr on a server somewhere and have your Android app connect to Solr via HTTP.
However, Solr is not designed to be used as a public HTTP application (see the Solr security wiki page), so it's generally best to write a small web service that acts as a proxy and at the same time offers a simplified, tailored API for your Android app.