Android应用程序+ SOLR [英] Android app + SOLR

查看:338
本文介绍了Android应用程序+ SOLR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用SOLR做搜索我的Andr​​oid应用程序。这一点是我可以做什么? 如果是的话请您点我一些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的地方,有你的Andr​​oid应用程序通过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为你的Andr​​oid应用程序的小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.

这篇关于Android应用程序+ SOLR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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