lucene-ruby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiago Jackiw" <tjac...@gmail.com>
Subject Outdated readme file solr-ruby's repository
Date Sat, 16 Jun 2007 03:24:46 GMT
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

Mime
View raw message