<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Mongosphinx with MongoDB and MongoMapper</title>
	<atom:link href="http://mepatterson.net/2010/01/mongosphinx-with-mongodb-and-mongomapper/feed/" rel="self" type="application/rss+xml" />
	<link>http://mepatterson.net/2010/01/mongosphinx-with-mongodb-and-mongomapper/</link>
	<description>bestselling author of Devil&#039;s Hand, a supernatural thriller; writer of fictions and web software</description>
	<lastBuildDate>Sun, 29 Jan 2012 11:26:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: M. E. Patterson</title>
		<link>http://mepatterson.net/2010/01/mongosphinx-with-mongodb-and-mongomapper/#comment-392</link>
		<dc:creator>M. E. Patterson</dc:creator>
		<pubDate>Wed, 26 Jan 2011 19:59:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=43#comment-392</guid>
		<description>yeah, this post was way before I started building with Rails 3.  On my Rails 3 apps, I&#039;m now using mongoid and solr, so I make no guarantees as to that post.  :)</description>
		<content:encoded><![CDATA[<p>yeah, this post was way before I started building with Rails 3.  On my Rails 3 apps, I&#8217;m now using mongoid and solr, so I make no guarantees as to that post.  <img src='http://mepatterson.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yan</title>
		<link>http://mepatterson.net/2010/01/mongosphinx-with-mongodb-and-mongomapper/#comment-391</link>
		<dc:creator>yan</dc:creator>
		<pubDate>Wed, 26 Jan 2011 19:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=43#comment-391</guid>
		<description>Should mongosphinx work with rails3? I&#039;ve added to my mongomapper model  this: fulltext_index :product_id, :product_title, :server =&gt; &#039;localhost&#039;, :port =&gt; 9312

And get this error: NoMethodError: undefined method `fulltext_index&#039; for Product:Class</description>
		<content:encoded><![CDATA[<p>Should mongosphinx work with rails3? I&#8217;ve added to my mongomapper model  this: fulltext_index :product_id, :product_title, :server =&gt; &#8216;localhost&#8217;, :port =&gt; 9312</p>
<p>And get this error: NoMethodError: undefined method `fulltext_index&#8217; for Product:Class</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M. E. Patterson</title>
		<link>http://mepatterson.net/2010/01/mongosphinx-with-mongodb-and-mongomapper/#comment-346</link>
		<dc:creator>M. E. Patterson</dc:creator>
		<pubDate>Mon, 27 Dec 2010 17:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=43#comment-346</guid>
		<description>obvious first step: make sure your mongod is running on port 9312 and hitting it via &quot;0.0.0.0&quot; actually works.</description>
		<content:encoded><![CDATA[<p>obvious first step: make sure your mongod is running on port 9312 and hitting it via &#8220;0.0.0.0&#8243; actually works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: star</title>
		<link>http://mepatterson.net/2010/01/mongosphinx-with-mongodb-and-mongomapper/#comment-344</link>
		<dc:creator>star</dc:creator>
		<pubDate>Sat, 25 Dec 2010 03:42:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=43#comment-344</guid>
		<description>I use this for my app(rails 3)
but an error is &quot;Connection to 0.0.0.0 on 9312 failed. Connection refused - connect(2)&quot;
I don&#039;t know why?</description>
		<content:encoded><![CDATA[<p>I use this for my app(rails 3)<br />
but an error is &#8220;Connection to 0.0.0.0 on 9312 failed. Connection refused &#8211; connect(2)&#8221;<br />
I don&#8217;t know why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ketan</title>
		<link>http://mepatterson.net/2010/01/mongosphinx-with-mongodb-and-mongomapper/#comment-263</link>
		<dc:creator>ketan</dc:creator>
		<pubDate>Thu, 12 Aug 2010 14:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=43#comment-263</guid>
		<description>rake ts:start

Failed to start searchd daemon. Check log/searchd.log.
Failed to start searchd daemon. Check log/searchd.log

rake ts:in


FATAL: no indexes found in config file &#039;config/development.sphinx.conf&#039;</description>
		<content:encoded><![CDATA[<p>rake ts:start</p>
<p>Failed to start searchd daemon. Check log/searchd.log.<br />
Failed to start searchd daemon. Check log/searchd.log</p>
<p>rake ts:in</p>
<p>FATAL: no indexes found in config file &#8216;config/development.sphinx.conf&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MartinAtMorango</title>
		<link>http://mepatterson.net/2010/01/mongosphinx-with-mongodb-and-mongomapper/#comment-249</link>
		<dc:creator>MartinAtMorango</dc:creator>
		<pubDate>Thu, 06 May 2010 22:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=43#comment-249</guid>
		<description>Solved!

I patched up (..)Ruby/Gems/1.8/gems/mongosphinx-0.1.1/./lib/mixins/properties.rb (line 56). It seems to be working fine now.

      def sphinx_id
        if (match = self.id.to_s.match(/#{self.class}-([0-9]+)/))  #.to_s.  inserted
          return match[1]
        else
          return nil
        end
      end

Cheers and thx again

Martin</description>
		<content:encoded><![CDATA[<p>Solved!</p>
<p>I patched up (..)Ruby/Gems/1.8/gems/mongosphinx-0.1.1/./lib/mixins/properties.rb (line 56). It seems to be working fine now.</p>
<p>      def sphinx_id<br />
        if (match = self.id.to_s.match(/#{self.class}-([0-9]+)/))  #.to_s.  inserted<br />
          return match[1]<br />
        else<br />
          return nil<br />
        end<br />
      end</p>
<p>Cheers and thx again</p>
<p>Martin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M. E. Patterson</title>
		<link>http://mepatterson.net/2010/01/mongosphinx-with-mongodb-and-mongomapper/#comment-248</link>
		<dc:creator>M. E. Patterson</dc:creator>
		<pubDate>Thu, 06 May 2010 02:50:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=43#comment-248</guid>
		<description>Just a guess (I&#039;ve moved on to Sunspot/Solr for use with Mongo now, instead of Sphinx), but I&#039;m betting this is due to you using a newer version of MongoMapper.  In the more recent versions, Nunemaker has switched MM&#039;s treatment of mongo object IDs from being a straight string to being an actual ObjectID object that can be coerced to a string.  It sounds like runner.rb is getting called at some point and told to run match() on the id, assuming that it&#039;s a String (which has a match method), but it&#039;s an ObjectID (which does not).  

Again, just a guess based on the error you are seeing.  Likely you&#039;ll have to hack around in MongoSphinx and find wherever it&#039;s trying to use that object id and add .to_s</description>
		<content:encoded><![CDATA[<p>Just a guess (I&#8217;ve moved on to Sunspot/Solr for use with Mongo now, instead of Sphinx), but I&#8217;m betting this is due to you using a newer version of MongoMapper.  In the more recent versions, Nunemaker has switched MM&#8217;s treatment of mongo object IDs from being a straight string to being an actual ObjectID object that can be coerced to a string.  It sounds like runner.rb is getting called at some point and told to run match() on the id, assuming that it&#8217;s a String (which has a match method), but it&#8217;s an ObjectID (which does not).  </p>
<p>Again, just a guess based on the error you are seeing.  Likely you&#8217;ll have to hack around in MongoSphinx and find wherever it&#8217;s trying to use that object id and add .to_s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MartinAtMorango</title>
		<link>http://mepatterson.net/2010/01/mongosphinx-with-mongodb-and-mongomapper/#comment-247</link>
		<dc:creator>MartinAtMorango</dc:creator>
		<pubDate>Thu, 06 May 2010 02:41:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=43#comment-247</guid>
		<description>Hello, 

I&#039;m having an annoying issue with /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/runner.rb:48: undefined method `match&#039; for ObjectID(&#039;4bab806e51e63a319e000004&#039;):Mongo::ObjectID (NoMethodError)
	from /usr/lib/ruby/gems/1.8/gems/mongosphinx-0.1.1/./lib/indexer.rb:108:in `initialize&#039;

mongo (0.19.1)
mongo_ext (0.19.1)
mongo_mapper (0.7.1)
mongosphinx (0.1.1)

Sphinx .98 OR .99

it also happens anytime i try: puts MongoSphinx::Indexer::XMLDocset.new(Page.all(WHATEVER)).to_s

...

I tried over and over again on ubuntu and snow leopard. :(

Help!

thx.</description>
		<content:encoded><![CDATA[<p>Hello, </p>
<p>I&#8217;m having an annoying issue with /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/runner.rb:48: undefined method `match&#8217; for ObjectID(&#8217;4bab806e51e63a319e000004&#8242;):Mongo::ObjectID (NoMethodError)<br />
	from /usr/lib/ruby/gems/1.8/gems/mongosphinx-0.1.1/./lib/indexer.rb:108:in `initialize&#8217;</p>
<p>mongo (0.19.1)<br />
mongo_ext (0.19.1)<br />
mongo_mapper (0.7.1)<br />
mongosphinx (0.1.1)</p>
<p>Sphinx .98 OR .99</p>
<p>it also happens anytime i try: puts MongoSphinx::Indexer::XMLDocset.new(Page.all(WHATEVER)).to_s</p>
<p>&#8230;</p>
<p>I tried over and over again on ubuntu and snow leopard. <img src='http://mepatterson.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Help!</p>
<p>thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Beedle</title>
		<link>http://mepatterson.net/2010/01/mongosphinx-with-mongodb-and-mongomapper/#comment-204</link>
		<dc:creator>Matt Beedle</dc:creator>
		<pubDate>Sat, 06 Mar 2010 11:19:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=43#comment-204</guid>
		<description>I solved this issue in case anyone else has the same problem, although I&#039;m still not entirely sure of the cause.  I changed my genxml task to actually write an tmp/accounts.xml libxml2 file, and then in my sphinx config I changed my xmlpipe_command to = cat /tmp/accounts.xml.  So the problem appears to have been to do with extra characters someone getting added to the puts output from xml_for_sphinx_pipe.

I also had a separate problem starting sphinx.  It kept telling me that port 9132 was in use, which it wasn&#039;t.  I removed port 9132 from the sphinx.conf file, and now it starts fine, but still on port 9132.</description>
		<content:encoded><![CDATA[<p>I solved this issue in case anyone else has the same problem, although I&#8217;m still not entirely sure of the cause.  I changed my genxml task to actually write an tmp/accounts.xml libxml2 file, and then in my sphinx config I changed my xmlpipe_command to = cat /tmp/accounts.xml.  So the problem appears to have been to do with extra characters someone getting added to the puts output from xml_for_sphinx_pipe.</p>
<p>I also had a separate problem starting sphinx.  It kept telling me that port 9132 was in use, which it wasn&#8217;t.  I removed port 9132 from the sphinx.conf file, and now it starts fine, but still on port 9132.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Beedle</title>
		<link>http://mepatterson.net/2010/01/mongosphinx-with-mongodb-and-mongomapper/#comment-201</link>
		<dc:creator>Matt Beedle</dc:creator>
		<pubDate>Thu, 04 Mar 2010 17:53:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=43#comment-201</guid>
		<description>Did you have any trouble getting sphinx to parse the xml?  Mine keeps blowing up with &quot;XML parse error: junk after document element&quot;. I created a thread on the sphinx forum too, but no reply ;( http://www.sphinxsearch.com/forum/view.html?id=5209</description>
		<content:encoded><![CDATA[<p>Did you have any trouble getting sphinx to parse the xml?  Mine keeps blowing up with &#8220;XML parse error: junk after document element&#8221;. I created a thread on the sphinx forum too, but no reply ;( <a href="http://www.sphinxsearch.com/forum/view.html?id=5209" rel="nofollow">http://www.sphinxsearch.com/forum/view.html?id=5209</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

