On Apr 12, 2007, at 9:25 AM, David Balmain wrote:

>     def print_all_terms(index)
>       index.field_infos.each do |field_info|
>         field = field_info.name
>         index.reader.terms(field).each {|term, freq| puts "# 
> {field}:#{term}"}
>       end
>     end

David-- thanks, this example is very helpful, but one strange  
problem: it seems that FieldInfo does not have a 'name' method, and  
as far as I can tell there is no way to access the name of the field  
represented. What am I missing?

Thanks,
John
_______________________________________________
Ferret-talk mailing list
[EMAIL PROTECTED]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to