将 Google Search Appliance 与 Rails 应用程序集成
我想将 GSA 与 Rails 集成。但事实证明网络并没有什么帮助。任何人都知道任何分步教程。
I wanted to integrate GSA with Rails. But the web proved to be un-helpful. Anybody knows any step-by-step tutorial.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
首先,您必须使用搜索查询致电 GSA。用于生成 GET 请求的参考信息位于:http:// /code.google.com/apis/searchappliance/documentation/610/xml_reference.html#SubmittingaSearchRequest
然后,您将收到来自 GSA 的 xml 响应,其中包含所有需要的信息。 xml 节点的参考位于此处(更好地查看 GSA 的 xml 响应并在我的链接中获取其他信息):http://code.google.com/apis/searchappliance/documentation/610/xml_reference.html#results_xml_tags
最后但并非最不重要的一点是,您必须解析信息在 xml 中并生成您的自定义前端。
我希望这会对你有所帮助。其实并不复杂。
First, you have to call the GSA with the search query. The reference informations for generating the GET-request is here: http://code.google.com/apis/searchappliance/documentation/610/xml_reference.html#SubmittingaSearchRequest
Then you will receive a xml response from the GSA with all needed information inside. The reference for the xml nodes are here (Look better at a xml response from your GSA and get additional informations in my link): http://code.google.com/apis/searchappliance/documentation/610/xml_reference.html#results_xml_tags
Last but not least, you have to parse the informations within the xml and generate your custom frontend.
I hope that will help you. It isn't really complicated.
“集成”的定义更接近。大多数东西都是与语言无关的,与 Rails/Java/.Net 或其他什么无关
Define "integrate" closer. The most things are language independent and have nothing to do with Rails/Java/.Net or whatever
尝试使用 gem
rails-gsa
,这会对您将 Google Search Appliance 与您的 Rails 应用程序集成有很大帮助。查看 github 上的文档 https://github.com/rohit9889/rails-gsa
Try using the gem
rails-gsa
this will help you a lot in integrating the Google Search Appliance with your rails Application.Check out the documentation on github https://github.com/rohit9889/rails-gsa