Forum: Ferret undefined method `<=>' for :id:Symbol

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Guest (Guest)
on 2006-04-01 01:03
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:in
`get_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:in
`doc_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:in
`create_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:in
`search_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
David B. (Guest)
on 2006-04-01 09:16
(Received via mailing list)
This bug has been fixed in the subversion repository. I'll release 0.9.1
soon.
Guest (Guest)
on 2006-04-01 09:52
Thanks David, tests now pass with dev version.
When do you plan to release 0.9.1?
David B. (Guest)
on 2006-04-01 11:02
(Received via mailing list)
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.
This topic is locked and can not be replied to.