On Thu, 2011-01-13 at 14:40 +0100, [email protected] wrote: > From: Tomas Sedovic <[email protected]> > > This gets us ready for adding the search. The Solr server is bundled with the > sunspot gem so you don't have to install it by hand. On the dev machine, not > in production of course. > > Run `rake sunspot:solr:start` to start the Solr server. > > When you make change to the solr/conf files, you must stop and start it again. > > Run `rake sunspot:reindex` to rebuild the index -- do this when you change the > search setup in the models. > ---
2 quick notes on issues I hit with this, in case anyone else has same problem: * If you don't have sunspot/solr installed, any rake task would fail, because we have solr stuff in our Rakefile. I pushed a trivial patch this afternoon to catch that error, so if you have this problem, please pull from next * I am not sure if this is something we should include in our script or not, but when I first tried to refresh my setup after pulling these changes down, I forgot to start the solr server, and when I ran 'rake dc:setup', it failed. Luckily, someone familiar with solr said the error I was getting sounded like something they had seen with solr before, so I was able to track it down quickly after that. However, if you dont realize this, you will get an unexpected Connect error when running that task. Like I said, not sure if this makes sense in a task or not, so I didnt change it, but might make things easier for developers, and certainly needs to be added to either the configure script or puppet setup (probably the latter). -j _______________________________________________ deltacloud-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/deltacloud-devel
