Outdated readme file solr-ruby's repository

View: New views
1 Messages — Rating Filter:   Alert me  

Outdated readme file solr-ruby's repository

by Thiago Jackiw-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The current readme file on solr-ruby's repository is outdated. If you
follow the example provided Solr will throw an exception (SEVERE:
org.apache.solr.core.SolrException: ERROR:unknown field 'title_text')
because its trying to insert an unknown field type:

# add a document to the index
  conn.add(:id => 123, :title_text => 'Lucene in Action')

which should be (as described on the wiki)
# add a document to the index
  conn.add(:id => 123, :title_t => 'Lucene in Action')

--
Thiago Jackiw
acts_as_solr => http://acts-as-solr.railsfreaks.com