<?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>John Eberly &#187; solr</title>
	<atom:link href="http://blog.eberly.org/tag/solr/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.eberly.org</link>
	<description>suggest a tagline....</description>
	<lastBuildDate>Wed, 28 Jul 2010 03:05:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Rails fuzzy searching with Sunspot gem</title>
		<link>http://blog.eberly.org/2010/07/27/rails-fuzzy-searching-with-sunspot-gem/</link>
		<comments>http://blog.eberly.org/2010/07/27/rails-fuzzy-searching-with-sunspot-gem/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 03:05:38 +0000</pubDate>
		<dc:creator>John Eberly</dc:creator>
				<category><![CDATA[]]></category>
		<category><![CDATA[double-metaphone]]></category>
		<category><![CDATA[fuzzy]]></category>
		<category><![CDATA[metaphone]]></category>
		<category><![CDATA[solr]]></category>
		<category><![CDATA[wildcard]]></category>

		<guid isPermaLink="false">http://blog.eberly.org/?p=209</guid>
		<description><![CDATA[SEARCH FOR: &#8216;Jon Smath&#8217; and get => &#8216;John Smith&#8217; This post explains the easy way to get &#8220;fuzzy&#8221; search results when using sunspot with ruby on rails. This is probably obvious to solr experts out there, but I found the information to be lacking in the rails community. I originally had compared the results of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>SEARCH FOR:  &#8216;Jon Smath&#8217; and get => &#8216;John Smith&#8217;</strong></p>
<p>This post explains the easy way to get &#8220;fuzzy&#8221; search results when using <a href="http://github.com/outoftime/sunspot">sunspot</a> with <a href="http://rubyonrails.org/">ruby on rails</a>.   This is probably obvious to solr experts out there, but I found the information to be lacking in the rails community.   I originally had <a href="http://blog.eberly.org/2009/07/14/fuzzy-search-results-solr-vs-sphinx/">compared the results of solr vs sphinx for fuzzy searching</a>.  In the original comparison I was using the Levenshtein distance for solr, which turns out not to scale well and doesn&#8217;t always return the best results when there are exact matches. </p>
<p>For this reason, we switched to using the &#8220;<a href="http://en.wikipedia.org/wiki/Double_Metaphone">Double-Metaphone&#8221;</a> algorithm for fuzzy searching in solr.  It provides a simple way to get fuzzy results for solr searches while still being able to scale well since most of the work is done at the time of indexing.  </p>
<p>Here is how to make it work using Sunspot.</p>
<p>Edit solr/conf/schema.xml and add the following line to the &lt;analyzer&gt; section.</p>
<p><script src="http://gist.github.com/493218.js?file=gistfile1.txt"></script></p>
<p>So it looks something like this.<br />
<script src="http://gist.github.com/493097.js?file=gistfile1.txt"></script></p>
<p>Note: order is important and you will want this towards the bottom of the config block.   See the <a href="http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters">Solr Wiki</a> for more detailed information</p>
<p>Last step, restart solr and reindex.   Then test your searches with misspellings etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.eberly.org/2010/07/27/rails-fuzzy-searching-with-sunspot-gem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fuzzy search results, solr vs sphinx</title>
		<link>http://blog.eberly.org/2009/07/14/fuzzy-search-results-solr-vs-sphinx/</link>
		<comments>http://blog.eberly.org/2009/07/14/fuzzy-search-results-solr-vs-sphinx/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 04:15:02 +0000</pubDate>
		<dc:creator>John Eberly</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[full text search]]></category>
		<category><![CDATA[solr]]></category>
		<category><![CDATA[sphinx]]></category>

		<guid isPermaLink="false">http://blog.eberly.org/?p=173</guid>
		<description><![CDATA[A post I made on my company blog about fuzzy search results comparing solr to sphinx. Fuzzy search results, solr vs sphinx]]></description>
			<content:encoded><![CDATA[<p>A post I made on my company blog about fuzzy search results comparing solr to sphinx.<br />
<a href="http://blog.elctech.com/2009/07/06/solr-vs-sphinx-fuzzy-search/">Fuzzy search results, solr vs sphinx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.eberly.org/2009/07/14/fuzzy-search-results-solr-vs-sphinx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
