I may have run across a bug in Ferret: if throws a segmentation fault
when I try to create a Sort object using the default fields (SCORE and
DOC_ID), but setting reverse to true.
Here's the minimal example:
#!/usr/bin/env ruby
require 'rubygems'
require 'ferret'
Ferret::Search::Sort.new
Ferret::Search::Sort.new(
[
Ferret::Search::SortField::SCORE,
Ferret::Search::SortField::DOC_ID
],
false
)
Ferret::Search::Sort.new(
[
Ferret::Search::SortField::SCORE_REV,
Ferret::Search::SortField::DOC_ID_REV
],
false
)
Ferret::Search::Sort.new(
[
Ferret::Search::SortField::SCORE,
Ferret::Search::SortField::DOC_ID
],
true
)
You should get something like this when creating the last object:
$ruby sort.rb
sort.rb:23: [BUG] Segmentation fault
ruby 1.8.6 (2007-09-24) [x86_64-linux]
Aborted
Again, this is with Ferret 0.11.6 in Linux.
Is this a known problem that's being worked on, or should I report it
at the Trac tool on ferret.davebalmain.com?
--
Bira
http://compexplicita.wordpress.com
http://compexplicita.tumblr.com
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk