Java Lucene compatibility?


#1

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 methodname’ 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:inscan_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:inget_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:indoc_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:innew’
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:inweight’
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:indo_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:insynchronize’
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