Forum: Ruby ferret: wildcard field search dies

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.
Fe57662c550fb3cce44c398ddf2dd706?d=identicon&s=25 itsme213 (Guest)
on 2005-11-22 17:46
(Received via mailing list)
Using the current ferret gem (on Win-XP):

irb(main):001:0> require 'ferret'
c:/ruby/lib/ruby/1.8/fileutils.rb:950: warning: already initialized
constant
OPT_TABLE
=> true

irb(main):002:0> include Ferret
=> Object

irb(main):003:0> index = Index::Index.new
=> #<Ferret::Index::Index:0x3477ba8 @qp=nil, ...>

irb(main):004:0> index << "This is a new doc"
=> nil

irb(main):005:0> index.search_each('*:this') do |d, s| puts d end
NoMethodError: undefined method `weight' for nil:NilClass
        from
c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.2.2/lib/ferret/search/index_searcher.rb:104:in
`search'
        from
c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.2.2/lib/ferret/index/index.rb:588:in
`do_search
'
        from
c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.2.2/lib/ferret/index/index.rb:291:in
`search_ea
ch'
        from
c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.2.2/lib/ferret/index/index.rb:290:in
`synchroni
ze'
        from
c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.2.2/lib/ferret/index/index.rb:290:in
`search_ea
ch'
        from (irb):5
irb(main):006:0>
This topic is locked and can not be replied to.