jQuery的PHP访问solr? [英] php of jquery to access solr?

查看:51
本文介绍了jQuery的PHP访问solr?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使我成为使用solr的初学者.

im a beginner in using solr.

我知道您可以使用Ajax solr或solr-php-client从solr获取搜索结果.

i know that you can either use ajax solr or solr-php-client to get the search results from solr.

但是我应该使用哪个?或者在某些情况下您必须选择其中之一?

but which should i use or are there occasions you have to choose one of them?

例如,哪种方法更适合自动完成,哪种方法更适合搜索线程中的内容?

for example, which one is a better solution for autocompletion and which one is better for search content in threads?

如果有人能对此有所了解,将不胜感激.

would appreciate if someone could shed a light on this.

推荐答案

  • 使用PHP(或其他服务器端语言)获得基本功能.
  • 使用客户端JS来获取其他可选内容.
  • 以有效的方式为基础.
    • Use PHP (or another server side language) for essential functionality.
    • Use client side JS for optional extras.
    • Build on stuff that works.
    • 这篇关于jQuery的PHP访问solr?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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