Forum: Ferret Java Lucene compatibility?

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.
Erik H. (Guest)
on 2006-01-05 23:12
(Received via mailing list)
I haven't dug into this yet, but wanted to report it.  I've built an
index with Java Lucene (1.9, from svn trunk) and then trying to
search it with Ferret and getting this:

/usr/lib/ruby/site_ruby/1.8/ferret/index/term_buffer.rb:31:in `read':
undefined method `name' for nil:NilClass (NoMethodError)
         from /usr/lib/ruby/site_ruby/1.8/ferret/index/
segment_term_enum.rb:90:in `next?'
         from /usr/lib/ruby/site_ruby/1.8/ferret/index/
segment_term_enum.rb:118:in `scan_to'
         from /usr/lib/ruby/site_ruby/1.8/ferret/index/
term_infos_io.rb:285:in `scan_for_term_info'
         from /usr/lib/ruby/site_ruby/1.8/ferret/index/
term_infos_io.rb:163:in `get_term_info'
         from /usr/lib/ruby/site_ruby/1.8/ferret/index/
segment_reader.rb:176:in `doc_freq'
         from /usr/lib/ruby/site_ruby/1.8/ferret/search/
index_searcher.rb:47:in `doc_freq'
         from /usr/lib/ruby/site_ruby/1.8/ferret/search/term_query.rb:
13:in `initialize'
         from /usr/lib/ruby/site_ruby/1.8/ferret/search/term_query.rb:
99:in `new'
         from /usr/lib/ruby/site_ruby/1.8/ferret/search/term_query.rb:
99:in `create_weight'
         from /usr/lib/ruby/site_ruby/1.8/ferret/search/query.rb:
51:in `weight'
         from /usr/lib/ruby/site_ruby/1.8/ferret/search/
index_searcher.rb:104:in `search'
         from /usr/lib/ruby/site_ruby/1.8/ferret/index/index.rb:
606:in `do_search'
         from /usr/lib/ruby/site_ruby/1.8/ferret/index/index.rb:
303:in `search_each'
         from /usr/lib/ruby/site_ruby/1.8/ferret/index/index.rb:
302:in `synchronize'
         from /usr/lib/ruby/site_ruby/1.8/ferret/index/index.rb:
302:in `search_each'


I'm using trunk of Ferret also.

I'll work on building an index solely with Ferret and comparing with
Java Lucene.

	Erik
This topic is locked and can not be replied to.