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

Overview of Sphinx

Sphinx is an external solution for database search, which means that it runs outside the main database used for your application. It takes data from the database and creates indexes that are stored on a file system. These indexes are highly optimized for searching and your application uses an API to search the indexes.

Sphinx interacts with the database using a data source driver which comes along with Sphinx. You need to specify which data source driver should be used by Sphinx in its configuration file.

Primary programs

As shown at the beginning of this chapter, Sphinx is shipped with some binary programs which were installed at /usr/local/sphinx/bin directory. Let's take a look at two principal programs that are used by Sphinx for indexing and searching purposes.

  • indexer: This program is used for indexing and re-indexing full-text indexes. By default, Sphinx reads the configuration file at /usr/local/sphinx/etc/sphinx.conf to know what and how to index. We will be dealing with sphinx.conf in more detail during later chapters.
  • searchd: This is the daemon used for searching the indexes. It requires a client to access the Sphinx API. There are a number of searchd client API implementations available for Sphinx.

Enough talking about Sphinx, now let's see it in action…

主站蜘蛛池模板: 清苑县| 临高县| 开化县| 怀来县| 全椒县| 海口市| 石景山区| 遂川县| 宝鸡市| 三原县| 绥阳县| 平利县| 天峨县| 金堂县| 蒲江县| 竹山县| 汪清县| 舞钢市| 惠州市| 柏乡县| 基隆市| 静海县| 盐池县| 易门县| 三穗县| 茂名市| 安平县| 平利县| 南昌市| 武清区| 蓬莱市| 武强县| 神农架林区| 兴文县| 固阳县| 新津县| 博湖县| 英山县| 襄汾县| 新宁县| 普安县|