Undefined method `<=>' for 🆔Symbol


#1

Upgrading to 0.9.0, I have the following error. Anybody?

c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/index/term.rb:35:in
<=>': undefined method<=>’ for :id:Symbol
(NoMethodError)
from
c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/index/term_infos_io.rb:263:in
get_index_offset' from c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/index/term_infos_io.rb:162:inget_term_info’
from
c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/index/segment_reader.rb:176:in
doc_freq' from c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/search/index_searcher.rb:47:indoc_freq’
from
c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/search/term_query.rb:13:in
initialize' from c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/search/term_query.rb:99:increate_weight’
from
c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/search/query.rb:51:in
weight' from c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/search/index_searcher.rb:151:insearch_each’
… 23 levels…
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1850:in
`each_with_index’
from C:/tmp/agora/trunk/db/content/import.rb:27
from C:/tmp/agora/trunk/db/content/import.rb:20
from C:/tmp/agora/trunk/db/content/import.rb:13


#2

This bug has been fixed in the subversion repository. I’ll release 0.9.1
soon.


#3

Thanks David, tests now pass with dev version.
When do you plan to release 0.9.1?


#4

On 4/1/06, removed_email_address@domain.invalid removed_email_address@domain.invalid wrote:

Thanks David, tests now pass with dev version.
When do you plan to release 0.9.1?

Monday. It will include UTF-8 support and the standard analyzer should
work on any language that uses spaces as word delimeters. It will also
include the snowball stemmer.

http://snowball.tartarus.org/

It’ll still be an alpha release though.