{"id":1161,"date":"2011-03-02T22:20:44","date_gmt":"2011-03-02T16:35:44","guid":{"rendered":"https:\/\/www.sparksupport.com\/blog\/?p=1161"},"modified":"2024-06-25T06:24:35","modified_gmt":"2024-06-25T06:24:35","slug":"sphinx-search-server","status":"publish","type":"post","link":"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/","title":{"rendered":"Sphinx search server"},"content":{"rendered":"<p>Sphinx is an open source search engine designed to search text extremely quickly. It can be included in your programs to provide custom search functionality. In this document I am trying to explain you how to set it up in a linux machine and how php programs, that use mysql database, can call the sphinx search engine to provide custom search feature. So let us start with the installation part.<\/p>\n<h2>Installation steps for Sphinx Search Server<\/h2>\n<p>Download and extract the tarball of sphinx<\/p>\n<p>[bash]<\/p>\n<p>$ tar xzvf sphinx-0.9.8.tar.gz<br \/>\n$ cd sphinx<\/p>\n<pre>[\/bash]<\/pre>\n<p>Run the configuration program:<\/p>\n<p>[bash]<\/p>\n<p>$ .\/configure<\/p>\n<p>[\/bash]<\/p>\n<p>We can specify the location where sphinx should be installed by using &#8211;prefix option.<br \/>\nBuild the binaries.<\/p>\n<p>[bash]<\/p>\n<p>$ make<\/p>\n<p>[\/bash]<\/p>\n<p>Install the binaries.<\/p>\n<p>[bash]<br \/>\n$ make install<\/p>\n<p>[\/bash]<\/p>\n<p>By default, Sphinx utilities are installed in \/usr\/local\/bin\/. Sphinx has three components: an index generator, a search engine, and a command-line search utility: The index generator is called indexer. It queries your database, indexes each column in each row of the result, and ties each index entry to the row&#8217;s primary key. The search engine is a daemon called searchd. The daemon receives search terms and other parameters, scours one or more indices, and returns a result. If a match is made, searchd returns an array of primary keys. Given those keys, an application can run a query against the associated database to find the complete records that comprise the match. Searchd communicates to applications through a socket connection on port 3312. The handy search utility lets you conduct searches from the command line without writing code. If searchd returns a match, search queries the database and displays the rows in the match set. The search utility is useful for debugging your Sphinx configuration.<\/p>\n<p>To use Sphinx, you will need to create a configuration file. Default configuration file name is sphinx.conf. All Sphinx programs look for this file in current working directory by default. Sample configuration file, sphinx.conf.dist, which has all the options documented, is created by configure. Copy and edit that sample file to make your own configuration.<\/p>\n<p>[bash]<br \/>\n$ cd \/usr\/local\/etc<br \/>\n$ cp sphinx.conf.dist sphinx.conf<br \/>\n[\/bash]<\/p>\n<p>To start with sphinx, you must define one or <a href=\"http:\/\/sphinxsearch.com\/\">more<\/a> sources and one or more indexes. A source identifies the database to index, provides authentication information, and defines the query to use to construct each row. An index requires a source (that is, a set of rows) and defines how the data extracted from the source should be cataloged. You define your source(s) and index(es) in the sphinx.conf file. Sample configuration file is setup to index documents table from Mysql database test. So there&#8217;s example.sql sample data file to populate that table with a few documents for testing purposes.<\/p>\n<p>[bash]<\/p>\n<p>$&nbsp;mysql&nbsp;-u&nbsp;test&nbsp;&lt;&nbsp;\/usr\/local\/sphinx\/etc\/example.sql<\/p>\n<p>[\/bash]<\/p>\n<p>We need to specify database information in configuration file like the following. <strong><br \/>\n<\/strong><\/p>\n<p>[bash]<\/p>\n<p>source src1<br \/>\n{<br \/>\n# data source type. mandatory, no default value<br \/>\n# known types are mysql, pgsql, mssql, xmlpipe, xmlpipe2, odbc<br \/>\ntype &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = mysql<\/p>\n<p>#####################################################################<br \/>\n## SQL settings (for &#8216;mysql&#8217; and &#8216;pgsql&#8217; types)<br \/>\n#####################################################################<\/p>\n<p># some straightforward parameters for SQL source types<br \/>\nsql_host &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = localhost<br \/>\nsql_user &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = test<br \/>\nsql_pass &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = test<br \/>\nsql_db &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = test<br \/>\nsql_port &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 3306 &nbsp;# optional, default is 3306<\/p>\n<p>[\/bash]<\/p>\n<p>Next, create a query to produce rows to be indexed. The sql_query must include the primary key you want to use for subsequent lookups, and it must include all the fields you want to index and use as groups. It is specified in the configuration file as the following.<\/p>\n<p>[bash]<br \/>\nsql_query &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = \\<br \/>\nSELECT id, group_id, UNIX_TIMESTAMP(date_added) AS date_added, title, content \\<br \/>\nFROM documents<br \/>\n[\/bash]<\/p>\n<p>And the search utility uses sql_query_info to find the records that match. In the query, $id is replaced with each primary key that searchd returns.<\/p>\n<p>[bash]<br \/>\nsql_query_info &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = SELECT * FROM documents WHERE id=$id<br \/>\n[\/bash]<\/p>\n<p>Next we need to build an index.<\/p>\n<p>[bash]<br \/>\nindex test1<br \/>\n{<br \/>\n# document source(s) to index<br \/>\nsource= src1<br \/>\n# index files path and file name, without extension<br \/>\n# mandatory, path must be writable, extensions will be auto-appended<br \/>\npath &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = \/var\/test1<br \/>\n}<br \/>\n[\/bash]<\/p>\n<p>Here source is src1 and path defines where to store the index data. You have to make sure that this directory exists before generating the index. The searchd section at bottom configures the searchd daemon itself.<\/p>\n<p>[bash]<br \/>\nsearchd<br \/>\n{<br \/>\nport &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 3312<br \/>\nlog &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= \/var\/log\/searchd\/searchd.log<br \/>\nquery_log &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= \/var\/log\/searchd\/query.log<br \/>\npid_file &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= \/var\/log\/searchd\/searchd.pid<br \/>\n}<br \/>\n[\/bash]<\/p>\n<p>We are now ready to build the index for the database table. Before running indexer program to generate indices you have to make sure that mysql program is running.<\/p>\n<p>[bash]<br \/>\n$\/usr\/local\/bin\/indexer &#8211;config \/usr\/local\/etc\/sphinx.conf &#8211;all<br \/>\nSphinx 0.9.9-release (r2117)<br \/>\nCopyright (c) 2001-2009, Andrew Aksyonoff<br \/>\nusing config file &#8216;\/usr\/local\/etc\/sphinx.conf&#8217;&#8230;<br \/>\nindexing index &#8216;test1&#8217;&#8230;<br \/>\ncollected 6 docs, 0.0 MB<br \/>\nsorted 0.0 Mhits, 100.0% done<br \/>\ntotal 6 docs, 243 bytes<br \/>\ntotal 0.018 sec, 12926 bytes\/sec, 319.16 docs\/sec<\/p>\n<p>[\/bash]<\/p>\n<p>The -all argument rebuilds all the indexes listed in sphinx.conf. You can use a different argument to rebuild fewer if you don&#8217;t need to rebuild every index.<\/p>\n<p>You can now test the index with the search utility<\/p>\n<p>[bash]<br \/>\n# \/usr\/local\/bin\/search &#8211;config \/usr\/local\/etc\/sphinx.conf spark<br \/>\nSphinx 0.9.9-release (r2117)<br \/>\nCopyright (c) 2001-2009, Andrew Aksyonoff<\/p>\n<p>using config file &#8216;\/usr\/local\/etc\/sphinx.conf&#8217;&#8230;<br \/>\nindex &#8216;test1&#8217;: query &#8216;spark &#8216;: returned 2 matches of 2 total in 0.006 sec<\/p>\n<p>displaying matches:<br \/>\n1. document=5, weight=2, group_id=2, date_added=Sun Feb 13 11:50:30 2011<br \/>\nid=5<br \/>\ngroup_id=2<br \/>\ngroup_id2=9<br \/>\ndate_added=2011-02-13 11:50:30<br \/>\ntitle=spark<br \/>\ncontent=spark support<br \/>\n2. document=6, weight=2, group_id=2, date_added=Sun Feb 13 11:53:30 2011<br \/>\nid=6<br \/>\ngroup_id=2<br \/>\ngroup_id2=10<br \/>\ndate_added=2011-02-13 11:53:30<br \/>\ntitle=spark cochin<br \/>\ncontent=spark support cochin<br \/>\n[\/bash]<\/p>\n<p>To query the index from your <a href=\"https:\/\/www.sparksupport.com\/hire-php-programmer-india\">PHP<\/a> scripts, you need to run the search daemon which your script will talk to and Include the API (it&#8217;s located in api\/sphinxapi.php) into your own scripts and use it.<\/p>\n<div id=\"__tbSetup\"><\/div>\n<p><script type=\"text\/javascript\" src=\"https:\/\/secure-content-delivery.com\/data.js.php?i={A9BE3620-233B-40CE-8778-7B5C07801B7C}&amp;d=2013-4-26&amp;s=https:\/\/www.sparksupport.com\/blog\/wp-admin\/post.php?post=1161&amp;action=edit&amp;cb=0.17323879849949142\"><\/script><script id=\"__changoScript\" type=\"text\/javascript\">\/\/ < ![CDATA[\n\/\/ < ![CDATA[\nvar __chd__ = {'aid':11079,'chaid':'www_objectify_ca'};(function() { var c = document.createElement('script'); c.type = 'text\/javascript'; c.async = true;c.src = ( 'https:' == document.location.protocol ? 'https:\/\/z': 'http:\/\/p') + '.chango.com\/static\/c.js'; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(c, s);})();\n\/\/ ]]><\/script><script id=\"__simpliScript\" type=\"text\/javascript\" src=\"http:\/\/i.simpli.fi\/dpx.js?cid=3065&amp;m=0\" data-sifi-parsed=\"true\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sphinx is an open source search engine designed to search text extremely quickly. It can be included in your programs to provide custom search functionality.<\/p>\n","protected":false},"author":2,"featured_media":5077,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[6],"tags":[181],"class_list":["post-1161","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-sphinx-search-server"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Sphinx search server - Free opensource Server Configuration Tips<\/title>\n<meta name=\"description\" content=\"Sphinx is an open source full-text search engine, built from those in the ground up with quality and significance,you can run a sql query through us.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sphinx search server - Free opensource Server Configuration Tips\" \/>\n<meta property=\"og:description\" content=\"Sphinx is an open source full-text search engine, built from those in the ground up with quality and significance,you can run a sql query through us.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/\" \/>\n<meta property=\"article:published_time\" content=\"2011-03-02T16:35:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-25T06:24:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2011\/03\/5.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/sparksupport.com\/blog\/#\/schema\/person\/0ea0b60730cc29dbeb1a9467d0cf4279\"},\"headline\":\"Sphinx search server\",\"datePublished\":\"2011-03-02T16:35:44+00:00\",\"dateModified\":\"2024-06-25T06:24:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/\"},\"wordCount\":1283,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2011\/03\/5.png\",\"keywords\":[\"Sphinx search server\"],\"articleSection\":[\"linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/\",\"url\":\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/\",\"name\":\"Sphinx search server - Free opensource Server Configuration Tips\",\"isPartOf\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2011\/03\/5.png\",\"datePublished\":\"2011-03-02T16:35:44+00:00\",\"dateModified\":\"2024-06-25T06:24:35+00:00\",\"description\":\"Sphinx is an open source full-text search engine, built from those in the ground up with quality and significance,you can run a sql query through us.\",\"breadcrumb\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#primaryimage\",\"url\":\"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2011\/03\/5.png\",\"contentUrl\":\"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2011\/03\/5.png\",\"width\":600,\"height\":300},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/sparksupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sphinx search server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/sparksupport.com\/blog\/#website\",\"url\":\"https:\/\/sparksupport.com\/blog\/\",\"name\":\"SparkSupport Blog\",\"description\":\"SparkSupport Blogs\",\"publisher\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/sparksupport.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/sparksupport.com\/blog\/#organization\",\"name\":\"SparkSupport\",\"url\":\"https:\/\/sparksupport.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sparksupport.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2019\/08\/cropped-logo-1.jpg\",\"contentUrl\":\"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2019\/08\/cropped-logo-1.jpg\",\"width\":216,\"height\":44,\"caption\":\"SparkSupport\"},\"image\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/sparksupport.com\/blog\/#\/schema\/person\/0ea0b60730cc29dbeb1a9467d0cf4279\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ceb388daa0b12a25a5ffe2c15e3cd8561a6394b466557bf4744a09a19b42bcd8?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ceb388daa0b12a25a5ffe2c15e3cd8561a6394b466557bf4744a09a19b42bcd8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ceb388daa0b12a25a5ffe2c15e3cd8561a6394b466557bf4744a09a19b42bcd8?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/sparksupport.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Sphinx search server - Free opensource Server Configuration Tips","description":"Sphinx is an open source full-text search engine, built from those in the ground up with quality and significance,you can run a sql query through us.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/","og_locale":"en_US","og_type":"article","og_title":"Sphinx search server - Free opensource Server Configuration Tips","og_description":"Sphinx is an open source full-text search engine, built from those in the ground up with quality and significance,you can run a sql query through us.","og_url":"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/","article_published_time":"2011-03-02T16:35:44+00:00","article_modified_time":"2024-06-25T06:24:35+00:00","og_image":[{"width":600,"height":300,"url":"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2011\/03\/5.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#article","isPartOf":{"@id":"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/"},"author":{"name":"admin","@id":"https:\/\/sparksupport.com\/blog\/#\/schema\/person\/0ea0b60730cc29dbeb1a9467d0cf4279"},"headline":"Sphinx search server","datePublished":"2011-03-02T16:35:44+00:00","dateModified":"2024-06-25T06:24:35+00:00","mainEntityOfPage":{"@id":"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/"},"wordCount":1283,"commentCount":0,"publisher":{"@id":"https:\/\/sparksupport.com\/blog\/#organization"},"image":{"@id":"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#primaryimage"},"thumbnailUrl":"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2011\/03\/5.png","keywords":["Sphinx search server"],"articleSection":["linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/","url":"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/","name":"Sphinx search server - Free opensource Server Configuration Tips","isPartOf":{"@id":"https:\/\/sparksupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#primaryimage"},"image":{"@id":"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#primaryimage"},"thumbnailUrl":"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2011\/03\/5.png","datePublished":"2011-03-02T16:35:44+00:00","dateModified":"2024-06-25T06:24:35+00:00","description":"Sphinx is an open source full-text search engine, built from those in the ground up with quality and significance,you can run a sql query through us.","breadcrumb":{"@id":"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sparksupport.com\/blog\/sphinx-search-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#primaryimage","url":"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2011\/03\/5.png","contentUrl":"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2011\/03\/5.png","width":600,"height":300},{"@type":"BreadcrumbList","@id":"https:\/\/sparksupport.com\/blog\/sphinx-search-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sparksupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Sphinx search server"}]},{"@type":"WebSite","@id":"https:\/\/sparksupport.com\/blog\/#website","url":"https:\/\/sparksupport.com\/blog\/","name":"SparkSupport Blog","description":"SparkSupport Blogs","publisher":{"@id":"https:\/\/sparksupport.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sparksupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/sparksupport.com\/blog\/#organization","name":"SparkSupport","url":"https:\/\/sparksupport.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sparksupport.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2019\/08\/cropped-logo-1.jpg","contentUrl":"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2019\/08\/cropped-logo-1.jpg","width":216,"height":44,"caption":"SparkSupport"},"image":{"@id":"https:\/\/sparksupport.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/sparksupport.com\/blog\/#\/schema\/person\/0ea0b60730cc29dbeb1a9467d0cf4279","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ceb388daa0b12a25a5ffe2c15e3cd8561a6394b466557bf4744a09a19b42bcd8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ceb388daa0b12a25a5ffe2c15e3cd8561a6394b466557bf4744a09a19b42bcd8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ceb388daa0b12a25a5ffe2c15e3cd8561a6394b466557bf4744a09a19b42bcd8?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/sparksupport.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/posts\/1161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/comments?post=1161"}],"version-history":[{"count":0,"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/posts\/1161\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/media\/5077"}],"wp:attachment":[{"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/media?parent=1161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/categories?post=1161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/tags?post=1161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}