Home » Source Code » PHP搜索引擎 SimpleSearch

PHP搜索引擎 SimpleSearch

dai1988
2016-05-18 15:21:50
The author
View(s):
Download(s): 0
Point (s): 1 
Category Category:
AllAll

Description

simplesearch是在linux平台下使用c/c++开发,专为PHP开发人员而研发的一款搜索引擎,其基于Xapian开发,目标是让所有PHP开发人员都很容易解决百万级数量以上的全文检索需求。

它的实现真的很简单。轻轻松松就能实现全文检索需求,它的整个过程就像你操作mysql一样简单。

主要特点

  1. 快速:体积小,加载速度快,开发快
  2. 开源:开放源代码,高水平,高品质
  3. 底层:采用Xapian
  4. 并发:并用epoll模型,高并发
  5. 建索引速度:500条记录/s (机器配置为:4核xeon 3.0CPU 2G内存)
  6. 搜索速度:2百万条记录,搜索平均时间为:0.037S
  7. 可以随意更新记录,删除记录,比sphinx更加灵活

安装

  1. ./configure --prefix=/opt/simplesearch/
  2. make && make install
  3. cd /opt/simplesearch/
  4. 启动:./sbin/simplesearch
  5. 停止:./sbin/simplesearch -s stop
  6. 将启动2个端口,请在iptables添加,并设置只有ip为:183.63.2.211(你自己的ip) 才能调用该接口,以确保安全性

-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 6162 -s 183.63.2.211 -j ACCEPT-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 6163 -s 183.63.2.211 -j ACCEPT

  • 接口说明:http://blog.csdn.net/zll_liang/article/details/8283741
  • 创建检索库:http://blog.csdn.net/zll_liang/article/details/8283753
  • 搜索:http://blog.csdn.net/zll_liang/article/details/8283756
  • 添加数据:http://blog.csdn.net/zll_liang/article/details/8283750
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
Sponsored links

Comments

(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
  • 1
  • Page 1
  • Total 1

PHP搜索引擎 SimpleSearch (10.01 MB)

Need 1 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D