您的位置:首页 > 大数据

Sphinx 搜索引擎 MySql多表上亿大数据飞速执行的福音 SphinxQL像使用SQL一样使用

2016-07-13 17:45 1011 查看
Sphinx 官网 Sphinx 客户端

本文基于Sphinx 2.2.11-release

Sphinx是什么?

Sphinx是一款俄罗斯人用C++开发的免费搜索引擎

Sphinx市场表现如何?

始于2001年,近20年的市场打磨

中国人山寨Sphinx改名为Coreseek,经营多年却始终无法超越

PHP官网承认的搜索引擎扩展共4种,其中一种就是Sphinx

丰富的Java、.NET、Python、Ruby、PHP电商、OA、论坛、博客、CMS、Framework等扩展接口、API、SDK等Sphinx Demo

为什么要选择Sphinx?

Sphinx除了标准的搜索引擎写法、分布式、集群、增量索引,其额外特有的Sphinx SE模式还支持像使用SQL一样使用Sphinx,不仅仅支持Sphinx SE 客户端的 MySql 存储引擎,更强大的在于SphinxQL,一个Mysql数据表不仅仅可以作为Sphinx数据源,还可以当做单独的Mysql表、视图等来LEFT JOIN 或单独、或组合使用,一表多用。

.
├── DEBIAN
│   ├── conffiles
│   ├── control
│   ├── md5sums
│   ├── postinst
│   ├── preinst
│   └── prerm
├── etc
│   ├── default
│   │   └── sphinxsearch
│   ├── init
│   │   └── sphinxsearch.conf
│   ├── logrotate.d
│   │   └── sphinxsearch
│   └── sphinxsearch
│       └── sphinx.conf
├── usr
│   ├── bin
│   │   ├── indexer
│   │   ├── indextool
│   │   ├── searchd
│   │   ├── spelldump
│   │   └── wordbreaker
│   └── share
│       ├── doc
│       │   └── sphinxsearch
│       │       ├── changelog.Debian.gz
│       │       ├── copyright
│       │       ├── example-conf
│       │       │   ├── example.sql
│       │       │   ├── sphinx.conf.dist.gz
│       │       │   └── sphinx-min.conf.dist
│       │       ├── internals-coding-standard.txt
│       │       ├── internals-format-versions.txt.gz
│       │       ├── internals-index-format.txt.gz
│       │       ├── README.Debian
│       │       ├── sphinx.html
│       │       └── sphinx.txt.gz
│       ├── man
│       │   └── man1
│       │       ├── indexer.1.gz
│       │       ├── indextool.1.gz
│       │       ├── searchd.1.gz
│       │       └── spelldump.1.gz
│       └── sphinxsearch
│           └── api
│               ├── java
│               │   ├── Makefile
│               │   ├── MANIFEST.MF
│               │   ├── mk.cmd
│               │   ├── mkdoc.cmd
│               │   ├── README
│               │   ├── SphinxClient.java
│               │   ├── SphinxException.java
│               │   ├── SphinxMatch.java
│               │   ├── SphinxResult.java
│               │   ├── SphinxWordInfo.java
│               │   └── test.java
│               ├── lgpl-3.0.txt
│               ├── libsphinxclient
│               │   ├── buildconf.sh
│               │   ├── build.mk
│               │   ├── config.guess
│               │   ├── config.sub
│               │   ├── configure
│               │   ├── configure.in
│               │   ├── COPYING
│               │   ├── install-sh
│               │   ├── libsphinxclient.vcproj
│               │   ├── ltmain.sh
│               │   ├── Makefile.am
│               │   ├── Makefile.in
│               │   ├── missing
│               │   ├── README
│               │   ├── smoke_ref.txt
│               │   ├── smoke_test.conf
│               │   ├── smoke_test.sh
│               │   ├── sphinxclient.c
│               │   ├── sphinxclient_config.h.in
│               │   ├── sphinxclient.h
│               │   ├── test03.sln
│               │   ├── test03.vcproj
│               │   ├── test.c
│               │   ├── test.sln
│               │   └── test.vcproj
│               ├── ruby
│               │   ├── init.rb
│               │   ├── install.rb
│               │   ├── lib
│               │   │   ├── sphinx
│               │   │   │   ├── client.rb
│               │   │   │   ├── request.rb
│               │   │   │   └── response.rb
│               │   │   └── sphinx.rb
│               │   ├── Rakefile
│               │   ├── README.rdoc
│               │   ├── spec
│               │   │   ├── client_response_spec.rb
│               │   │   ├── client_spec.rb
│               │   │   ├── fixtures
│               │   │   │   ├── default_search_index.php
│               │   │   │   ├── default_search.php
│               │   │   │   ├── excerpt_custom.php
│               │   │   │   ├── excerpt_default.php
│               │   │   │   ├── excerpt_flags.php
│               │   │   │   ├── field_weights.php
│               │   │   │   ├── filter_exclude.php
│               │   │   │   ├── filter_float_range_exclude.php
│               │   │   │   ├── filter_float_range.php
│               │   │   │   ├── filter.php
│               │   │   │   ├── filter_range_exclude.php
│               │   │   │   ├── filter_range_int64.php
│               │   │   │   ├── filter_range.php
│               │   │   │   ├── filter_ranges.php
│               │   │   │   ├── filters_different.php
│               │   │   │   ├── filters.php
│               │   │   │   ├── geo_anchor.php
│               │   │   │   ├── group_by_attrpair.php
│               │   │   │   ├── group_by_attr.php
│               │   │   │   ├── group_by_day.php
│               │   │   │   ├── group_by_day_sort.php
│               │   │   │   ├── group_by_month.php
│               │   │   │   ├── group_by_week.php
│               │   │   │   ├── group_by_year.php
│               │   │   │   ├── group_distinct.php
│               │   │   │   ├── id_range64.php
│               │   │   │   ├── id_range.php
│               │   │   │   ├── index_weights.php
│               │   │   │   ├── keywords.php
│               │   │   │   ├── limits_cutoff.php
│               │   │   │   ├── limits_max_cutoff.php
│               │   │   │   ├── limits_max.php
│               │   │   │   ├── limits.php
│               │   │   │   ├── match_all.php
│               │   │   │   ├── match_any.php
│               │   │   │   ├── match_boolean.php
│               │   │   │   ├── match_extended2.php
│               │   │   │   ├── match_extended.php
│               │   │   │   ├── match_fullscan.php
│               │   │   │   ├── match_phrase.php
│               │   │   │   ├── max_query_time.php
│               │   │   │   ├── miltiple_queries.php
│               │   │   │   ├── ranking_bm25.php
│               │   │   │   ├── ranking_none.php
│               │   │   │   ├── ranking_proximity_bm25.php
│               │   │   │   ├── ranking_proximity.php
│               │   │   │   ├── ranking_wordcount.php
│               │   │   │   ├── retries_delay.php
│               │   │   │   ├── retries.php
│               │   │   │   ├── select.php
│               │   │   │   ├── set_override.php
│               │   │   │   ├── sort_attr_asc.php
│               │   │   │   ├── sort_attr_desc.php
│               │   │   │   ├── sort_expr.php
│               │   │   │   ├── sort_extended.php
│               │   │   │   ├── sort_relevance.php
│               │   │   │   ├── sort_time_segments.php
│               │   │   │   ├── sphinxapi.php
│               │   │   │   ├── update_attributes_mva.php
│               │   │   │   ├── update_attributes.php
│               │   │   │   └── weights.php
│               │   │   └── sphinx
│               │   │       ├── sphinx.conf
│               │   │       ├── sphinx-id64.conf
│               │   │       └── sphinx_test.sql
│               │   ├── sphinx.yml.tpl
│               │   ├── tasks
│               │   │   └── sphinx.rake
│               │   └── test.rb
│               ├── sphinxapi.php
│               ├── sphinxapi.py
│               ├── test2.php
│               ├── test2.py
│               ├── test.php
│               └── test.py
└── var
├── lib
│   └── sphinxsearch
│       └── data
├── log
│   └── sphinxsearch
└── run
└── sphinxsearch

33 directories, 150 files
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息