<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>InfoTales &#187; SPHINX</title>
	<atom:link href="http://www.infotales.com/topic/sphinx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.infotales.com</link>
	<description>Web application performance, Web Server Performance, Data Mining, SEO, MySQL, Magento Performance and much more</description>
	<lastBuildDate>Sat, 21 Jan 2012 14:51:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Installing Sphinx on Windows, simply</title>
		<link>http://www.infotales.com/installing-sphinx-searc-on-windows/</link>
		<comments>http://www.infotales.com/installing-sphinx-searc-on-windows/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 14:51:57 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[SPHINX]]></category>

		<guid isPermaLink="false">http://www.infotales.com/?p=1440</guid>
		<description><![CDATA[In this article I will try to explain how to install Sphinx on Windows, in very simple manner. So lets get started. Go to latest release download page, and download &#8220;Win32 binaries w/MySQL support&#8221; release. I am using Sphinx 2.0.3 version, on Vista. File name of downloaded file will be like sphinx-2.0.3-release-win32.zip. Unzip the file. [...]]]></description>
			<content:encoded><![CDATA[<p>In this article I will try to explain how to install Sphinx on Windows, in very simple manner. So lets get started. <span id="more-1440"></span></p>
<ol>
<li> Go to <a rel="external" href="http://sphinxsearch.com/downloads/release/">latest release download</a> page, and download &#8220;Win32 binaries w/MySQL support&#8221; release. I am using Sphinx 2.0.3 version, on Vista. File name of downloaded file will be like sphinx-2.0.3-release-win32.zip.</li>
<li>Unzip the file. The unzipped content will look like c:/sphinx-2.0.3-win32/sphinx-2.0.3-win32/api etc.</li>
<li>Now copy/cut the c:/sphinx-2.0.3-win32/sphinx-2.0.3-win32/ inner folders and files</li>
<li>Create new folder in C:/sphinx/ (for the sake of simplicity i have selected this path, you can change it)</li>
<li>Paste the copied files and folders in this folder c:/sphinx/</li>
<li>Create c:/sphinx/data/ and c:/sphinx/log/ folders.</li>
<li>Create new text files c:/sphinx/log/query.log and c:/sphinx/log/searchd.log files. Note that files are having extension .log NOT the .log.txt or something.</li>
<li>We will be using simpler and easy to configure config file for sphinx. This file is c:/sphinx/sphinx-min.conf.in</li>
<li>Open c:/sphinx/sphinx-min.conf.in file in text editor and replace @CONFDIR@/ with c:/sphinx/ . There should be 5 lines where you need to replace this.</li>
<li>Now provide you mysql login info by updating sql_user, sql_pass and sql_db values. This will allow to test us the index creation and searching later. Also make appropriate changes to sample index &#8220;source src1&#8243; which are changing query and attributes.</li>
<li>Open dos window by typing CMD in Run dialog and hitting enter.</li>
<li>In DOS window type C: and enter</li>
<li>Now type cd c:/sphinx/ . Now the command line should be looking like c:\sphinx&gt;</li>
<li>Now type this command and hit enter C:\sphinx\bin\searchd &#8211;install &#8211;config C:\sphinx\sphinx-min.conf.in &#8211;servicename SphinxSearch</li>
<li>This will install the SphinxSearch as a service</li>
<li>Now I am assuming that you have made changes to config file correctly.</li>
<li>Now index the test index for the first time c:/sphinx/bin/indexer.exe &#8211;config C:\sphinx\sphinx-min.conf.in test1</li>
<li>Now to start the service use this command on Dos window C:\sphinx\bin\searchd.exe &#8211;ntservice &#8211;config C:\sphinx\sphinx-min.conf.in &#8211;servicename SphinxSearch</li>
<li>If every thing is OK then this command should show some results without errors. C:\sphinx\bin\search.exe &#8211;config C:\sphinx\sphinx.conf.in -i test1 term</li>
<li>The above command will tell if the &#8220;term&#8221; is found in &#8220;test1&#8243; index.</li>
</ol>
<p>Now we are done and you can start using sphinx via php or any other API. You may need to start service next time before using.</p>
<p>My local sphinx config file looks like this, you can use it by changing your mysql login info</p>
<pre>#
# Minimal Sphinx configuration sample (clean, simple, functional)
#

source src1
{
	type			= mysql

	sql_host		= localhost
	sql_user		= root
	sql_pass		= password
	sql_db			= test
	sql_port		= 3306	# optional, default is 3306

	sql_query		= \
		SELECT id, name, state_id \
		FROM cities

	sql_attr_uint		= state_id
}

index test1
{
	source			= src1
	path			= c:/sphinx/data/test1
	docinfo			= extern
	charset_type		= sbcs
}

indexer
{
	mem_limit		= 32M
}

searchd
{
	listen			= 9312
	#listen			= 9306:mysql41
	log			= c:/sphinx/log/searchd.log
	query_log		= c:/sphinx/log/query.log
	read_timeout		= 5
	max_children		= 30
	pid_file		= c:/sphinx/log/searchd.pid
	max_matches		= 1000
	seamless_rotate		= 1
	preopen_indexes		= 1
	unlink_old		= 1
	workers			= threads # for RT to work
}</pre>

<p class="FacebookLikeButton"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.infotales.com%2Finstalling-sphinx-searc-on-windows%2F&amp;layout=standard&amp;show_faces=yes&amp;width=450&amp;action=like&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 25px"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/installing-sphinx-searc-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Home of SPHINX search is down</title>
		<link>http://www.infotales.com/home-of-sphinx-search-is-down/</link>
		<comments>http://www.infotales.com/home-of-sphinx-search-is-down/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 15:29:28 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[SPHINX]]></category>

		<guid isPermaLink="false">http://www.infotales.com/home-of-sphinx-search-is-down/</guid>
		<description><![CDATA[Home of great SPHINX search http://www.sphinxsearch.com is down. Complete site including Forums, Downloads are unavailable. It is now almost 12 hours since we realized that the site is down. One reason behind this might be that this site is NOT powered by SPHINX, yes its true forums searching is not implemented on SPHINX. Hope to [...]]]></description>
			<content:encoded><![CDATA[<p>Home of great SPHINX search http://www.sphinxsearch.com is down. Complete site including Forums, Downloads are unavailable. It is now almost 12 hours since we realized that the site is down.</p>
<p>One reason behind this might be that this site is NOT powered by SPHINX, yes its true forums searching is not implemented on SPHINX.</p>
<p>Hope to have it back soon.</p>

<p class="FacebookLikeButton"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.infotales.com%2Fhome-of-sphinx-search-is-down%2F&amp;layout=standard&amp;show_faces=yes&amp;width=450&amp;action=like&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 25px"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/home-of-sphinx-search-is-down/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SPHINX Distributed Searching</title>
		<link>http://www.infotales.com/sphinx-distributed-searching/</link>
		<comments>http://www.infotales.com/sphinx-distributed-searching/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 06:56:18 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[SPHINX]]></category>

		<guid isPermaLink="false">http://www.infotales.com/?p=414</guid>
		<description><![CDATA[When we performing full-text searching through a number of large indexes it is important that we get results in shortest time possible. To ensure this SPHINX provides feature of &#8220;Distributed Searching&#8221;. Today we will look how we will look on SPHINX&#8217;s ability to perform distributed searching. If you don&#8217;t know what sphinx is please refer [...]]]></description>
			<content:encoded><![CDATA[<p>When we performing full-text searching through a number of large indexes it is important that we get results in shortest time possible. To ensure this SPHINX provides feature of &#8220;Distributed Searching&#8221;.</p>
<p>Today we will look how we will look on SPHINX&#8217;s ability to perform distributed searching. If you don&#8217;t know what sphinx is please refer to my other post <a href="http://www.infotales.com/introduction-to-sphinx-search/">Introduction to Sphinx Search</a>.</p>
<p>For example if you have a large index you can easily distribute. You can create this index in chunks and assign each chunk to each sphinx agent. You will query to this index and sphinx will do the searching in parallel and give you final results. This dramatically improves the speed of searching. This concept similar to table partitioning in mysql.</p>
<p>Here is the example to setup a distributed index<br />
<code>index mycompleteindex<br />
{<br />
type = distributed<br />
local = chunk0<br />
agent = localhost:3312:chunk2<br />
agent = localhost:3312:chunk3<br />
agent = localhost:3312:chunk4<br />
}</code></p>
<p>Here <code>type = distributed</code> tells that this is not a normal index. As we only have one searchd instance installed so we are using same instance <code>localhost:3312</code> and declaring it an <code>agent</code>.</p>
<p>With each <code>agent</code> are have specified an <code>chunk</code> to be served by this <code>agent</code>. The example shows distributed searching in one system the same can be achieved by using separate server for each chunk.</p>
<p>Note that this post is only introduction to this feature for further details refer to sphinx documentation.</p>
<p>Happy Searching</p>

<p class="FacebookLikeButton"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.infotales.com%2Fsphinx-distributed-searching%2F&amp;layout=standard&amp;show_faces=yes&amp;width=450&amp;action=like&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 25px"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/sphinx-distributed-searching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SPHINX get recommended by MySQL Performance Blog</title>
		<link>http://www.infotales.com/sphinx-recommended-mysql-performance-blog/</link>
		<comments>http://www.infotales.com/sphinx-recommended-mysql-performance-blog/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 06:43:16 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[SPHINX]]></category>

		<guid isPermaLink="false">http://www.infotales.com/?p=411</guid>
		<description><![CDATA[In an recent post famous MySQL Performance blog recommends use of SPHINX for full-text searching. Full-text indexing is one thing that stops most of the people to upgrade to InnoDB storage engine, and leaving MyISAM. The post is focused on what to do with full-text when going to InnoDB. Several solutions are mentioned like Use [...]]]></description>
			<content:encoded><![CDATA[<p>In an recent post famous MySQL Performance blog recommends use of SPHINX for full-text searching. Full-text indexing is one thing that stops most of the people to upgrade to InnoDB storage engine, and leaving MyISAM.<br />
The post is focused on what to do with full-text when going to InnoDB. Several solutions are mentioned like</p>
<ul>
<li>Use MyISAM Slaves: Keep all the tables with full-text on separate slave server and query that slave for full-text</li>
<li>Use “Shadow” MyISAM Table: Update myisam table on each update of innodb table by triggers</li>
<li>Leave Tables as MyISAM: leave the tables with full-text to myisam and update all other tables to Innodb.</li>
<li>Use Sphinx or other external full text search engine</li>
</ul>

<p class="FacebookLikeButton"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.infotales.com%2Fsphinx-recommended-mysql-performance-blog%2F&amp;layout=standard&amp;show_faces=yes&amp;width=450&amp;action=like&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 25px"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/sphinx-recommended-mysql-performance-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to Sphinx Search</title>
		<link>http://www.infotales.com/introduction-to-sphinx-search/</link>
		<comments>http://www.infotales.com/introduction-to-sphinx-search/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 06:36:33 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[SPHINX]]></category>

		<guid isPermaLink="false">http://www.infotales.com/?p=408</guid>
		<description><![CDATA[How do you implement full-text search for that 10+ million row table, keep up with the load, and stay relevant? Sphinx is good at those kinds of riddles. Sphinx stands for SQL Phrase Index. It is free, open source, powerful, easy to use, full-text search engine, which comes with apis in PHP and other languages. [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>How do you implement full-text search for that 10+ million row table, keep up with the load, and stay relevant? Sphinx is good at those kinds of riddles.</p></blockquote>
<p>Sphinx stands for <code>SQL Phrase Index</code>. It is free, open source, powerful, easy to use, full-text search engine, which comes with apis in PHP and other languages. Sphinx is being used by some very large sites like craigslist.org, netlog.com and <a rel="nofollow external" href="http://sphinxsearch.com/powered.html" target="_blank" rel="nofollow">more</a>.</p>
<p>Its key features include</p>
<ul>
<li> high indexing speed (upto 10 MB/sec on modern CPUs)</li>
<li> high search speed (avg query is under 0.1 sec on 2-4 GB text collections)</li>
<li> high scalability (upto 100 GB of text, upto 100 M documents on a single CPU)</li>
<li> supports distributed searching (since v.0.9.6)</li>
<li> supports MySQL natively (MyISAM and InnoDB tables are both supported)</li>
<li> supports phrase searching</li>
<li> supports phrase proximity ranking, providing good relevance</li>
<li> supports English and Russian stemming</li>
<li> supports any number of document fields (weights can be changed on the fly)</li>
<li>supports document groups</li>
<li> supports stopwords</li>
<li> supports different search modes (&#8220;match all&#8221;, &#8220;match phrase&#8221; and &#8220;match any&#8221; as of v.0.9.5)</li>
<li> pure-PHP (ie. NO module compiling etc) search client API</li>
</ul>
<p>Sphinx is one of the tool which I enjoyed to work with. I love its speed, stability and cool features. For more you can see following links</p>
<ul>
<li><a href="http://sphinxsearch.com/index.html" target="_blank" rel="nofollow">Sphinx Home</a></li>
<li><a href="http://sphinxsearch.com/docs/" target="_blank" rel="nofollow">Documentation</a></li>
<li><a href="http://sphinxsearch.com/faq.html" target="_blank" rel="nofollow">FAQ</a></li>
</ul>
<p>Later we will be looking how to use sphinx things.</p>

<p class="FacebookLikeButton"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.infotales.com%2Fintroduction-to-sphinx-search%2F&amp;layout=standard&amp;show_faces=yes&amp;width=450&amp;action=like&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 25px"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/introduction-to-sphinx-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

