One note of warning regarding the indices: Unless you think ahead a
little and plan for 2 separate indices, you'll run into trouble as soon
as you deploy to production. I cover the issue a little here:
http://blog.aisleten.com/2007/04/14/getting-started-with-acts_as_solr/
and I provide one possible solution here:
http://blog.aisleten.com/2007/04/15/acts_as_solr-for-development-and-production-in-one-tomcat-instance/
Micah
Thiago Jackiw wrote:
Michael,
There is indeed, but on the table level. Lets say you have a table
called books which contains lots of data, you can just create a model
Book and do the following:
class Book < < ActiveRecord::Base
acts_as_solr
end
Then you can just open script/console and type:
Book.rebuild_solr_index
Also its good to look at the acts_as_solr's api
(http://acts-as-solr.rubyforge.org) for a complete list of options you
can pass in.
--
Thiago Jackiw
acts_as_solr => http://acts-as-solr.rubyforge.org
Sitealizer => http://sitealizer.rubyforge.org
On 5/4/07, Michael Frederick <[EMAIL PROTECTED]> wrote:
After Rob's enlightening presentation last night, I was inspired to
try out Solr and acts_as_solr.
Is there a way to get Solr to index an existing database? I know I
could create a big xml file, but it seems that the plugin might have
some sort of shortcut for that.
- Michael Frederick
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby