Hi Dave,
Excerpts from David Balmain's mail of 24 Sep 2006 (PDT):
> Did you rebuild the index? You'll need to do that before it makes any
> difference.
Yes, the original example now works---thanks! Unfortunately, I still see
a lot of queries that return nothing in TermQuery form, but work fine in
String form.
For example:
> (0..10).each do |j|
> m = @i[j][:message_id]
> n1 = @i.search(Ferret::Search::TermQuery.new(:message_id, m)).total_hits
> n2 = @i.search("message_id:#{m}").total_hits
> puts "#{m}: #{n1} #{n2}"
> end
[EMAIL PROTECTED]: 0 1
[EMAIL PROTECTED]: 1 1
[EMAIL PROTECTED]: 1 1
[EMAIL PROTECTED]: 0 1
[EMAIL PROTECTED]: 0 1
[EMAIL PROTECTED]: 1 1
[EMAIL PROTECTED]: 1 1
[EMAIL PROTECTED]: 0 1
[EMAIL PROTECTED]: 1 1
[EMAIL PROTECTED]: 0 1
[EMAIL PROTECTED]: 0 1
Based on the first and third entries, I can't imagine this is a
tokenization problem. What do you think?
--
William <[EMAIL PROTECTED]>
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk