问题描述
我要寻找一个搜索引擎的API,preferably在PHP中,我可以用它来建立一个自定义搜索引擎,只搜索我的网站。
I am looking for a search-engine API, preferably in PHP, that I can use to build a custom search engine that only searches my website.
和它的结果,我可以用CSS样式,所以我认为,需要在结果页面将在我的网站/我的服务器上。
And whose results I can style with CSS, so I believe that requires the results page to be in my site / on my server.
我想preFER不使用Bing的API。
I would prefer to not use Bing's API.
但是,如果您有任何API或解决方案,以实现我想实现,我会由衷AP preciate它并随时分享。
But, if you have any APIs or solutions to achieve what I am trying to achieve, I would sincerely appreciate it and feel free to share them.
推荐答案
使用,它是死的易于设置和使用,因为它只是休息。还有已经是非常出色的PHP LIB吧,。
Use Elastic Search, it is dead easy to set up and use because it's just REST. There is also already a very well done php lib for it, Elastica.
您将有基于任何你需要建立自己的指数。但我可以告诉你,这是的非常的效率,我们在一天之内付诸实施。
You'll have to build your own index based on whatever you need. But I can tell you that it is very efficient and we implemented it within a day.
这篇关于API构建的搜索和结果显示在我的网站自定义搜索引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!