Besides the other replies on this thread, there is another really nice way to tie a database dynamically to Solr. Use acts_as_solr. The prerequisites are that you be using Ruby and ActiveRecord to model your database tables. But its as easy as this:

        class Book < ActiveRecord::Base
          acts_as_solr
        end

Any time a book record is updated, created, or deleted the change is sent to Solr and committed. And it supports searching via Solr and merging those results with the database records.

        Erik


On May 8, 2007, at 12:33 PM, Danny Huang wrote:



I am really new to the search space and to Solr, so I apologize if my
question seems primitive.

Can Solr index database records directly by accessing whatever db server
I have, or does it only index web documents (via http)?




Reply via email to