我想用SOLR做搜索我的Android应用程序。这一点是我可以做什么? 如果是的话请您点我一些code样了吗? 谢谢
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
依赖。 Solr的是一个相当沉重的服务器应用程序,它是不是真的适合在Android设备上运行。
Depends. Solr is a quite heavy server application, it's not really suited to run on an Android device.
您会希望在服务器上运行Solr的地方,有你的Android应用程序通过HTTP连接到Solr。
You'll want to run Solr on a server somewhere and have your Android app connect to Solr via HTTP.
不过,Solr的不是设计用来作为一个公共HTTP应用程序(请参见 Solr的安全维基页面)所以一般最好写的,作为一个代理,并在同一时间提供了一个简化的,量身定制的API为你的Android应用程序的小Web服务。
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.