官术网_书友最值得收藏!

Full-text search

Sphinx is a full-text search engine. So, before going any further, we need to understand what full-text search is and how it excels over the traditional searching.

What is full-text search?

Full-text search is one of the techniques for searching a document or database stored on a computer. While searching, the search engine goes through and examines all of the words stored in the document and tries to match the search query against those words. A complete examination of all the words (text) stored in the document is undertaken and hence it is called a full-text search.

Full-text search excels in searching large volumes of unstructured text quickly and effectively. It returns pages based on how well they match the user's query.

Traditional search

To understand the difference between a normal search and full-text search, let's take an example of a MySQL database table and perform searches on it.

It is assumed that MySQL Server and phpMyAdmin are already installed on your system.

主站蜘蛛池模板: 哈密市| 靖远县| 马关县| 濮阳市| 含山县| 宁城县| 无极县| 南溪县| 寿宁县| 图木舒克市| 天津市| 城市| 平谷区| 普宁市| 泰安市| 兴化市| 深水埗区| 中牟县| 临汾市| 琼海市| 栾城县| 土默特左旗| 德令哈市| 建阳市| 略阳县| 江川县| 北川| 绥芬河市| 辰溪县| 尼玛县| 陈巴尔虎旗| 祁门县| 普宁市| 海口市| 金阳县| 田林县| 古浪县| 弥勒县| 普格县| 太康县| 清徐县|