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

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…

主站蜘蛛池模板: 衡阳市| 阜新| 乌拉特前旗| 胶南市| 赤城县| 柳州市| 龙胜| 江北区| 夏邑县| 溧水县| 芒康县| 灵丘县| 神农架林区| 红安县| 绥德县| 谷城县| 龙胜| 常州市| 钟祥市| 六枝特区| 衢州市| 衡山县| 界首市| 张家界市| 疏附县| 华阴市| 体育| 桐庐县| 临邑县| 平乐县| 大理市| 渭源县| 宝鸡市| 筠连县| 永兴县| 永定县| 晋江市| 衡阳县| 安达市| 乌鲁木齐市| 子洲县|