Hi Erik Thanks for detailed information. With your detailed information I understand that acts_as_solr is presently the best available solution to connect to Solr from rails application for database. And you look forward to bring this under Solr Ruby development going forward. Which I assume will happen in next month or so.
That being the case acts_as_solr plugin from rubyforge is the most suitable place to start and soon it can be expected to work under apache solrruby project And could look forward for centralized code additions, updates and contributions here. Please correct if this understanding and future expectations is different Thanks Erik Hatcher wrote: > > > On Apr 21, 2007, at 9:42 PM, Erik Hatcher wrote: >> source = DataSource.new >> >> mapping = { >> :id => :isbn, >> :name => :author, >> :source => "BOOKS", >> :year => Proc.new {|record| record.date[0,4] }, >> } >> >> Solr::Indexer.index(source, mapper) do |orig_data, solr_document| >> solr_document[:timestamp] = Time.now >> end > > Sorry, my bad, that's what I get for contriving code without testing > it, and then changing the implementation to suit how I wanted to > describe it. > > It should be Solr::Indexer.index(source, mapping) .... # mappING > > I just changed the implementation to allow a Hash as well as a > Solr::Importer::Mapper object (well, really anything with a #map > method). > > Erik > > > > > -- View this message in context: http://www.nabble.com/-acts_as_solr--Few-question-on-usage-tf3595245.html#a10152267 Sent from the Solr - User mailing list archive at Nabble.com.