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

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.

主站蜘蛛池模板: 昆山市| 九江县| 凤凰县| 广饶县| 犍为县| 佛坪县| 金阳县| 嘉定区| 海兴县| 大兴区| 天水市| 满洲里市| 马鞍山市| 扎鲁特旗| 诸城市| 利川市| 滦平县| 梧州市| 石城县| 曲阳县| 朝阳区| 逊克县| 陇川县| 昌图县| 武穴市| 泰州市| 泰州市| 阜康市| 兖州市| 鹤岗市| 墨玉县| 江山市| 阜新市| 喜德县| 探索| 常德市| 明溪县| 同德县| 镇雄县| 石城县| 宜宾县|