Displaying 1 result from an estimated 1 matches for "each_term".
2006 Oct 05
4
search results autocompletion
Dear list,
I ''m using a text input field with autocompletion . The suggestions come 
from a ferret index which is created by getting all the terms belonging to 
other indices. Here is the code:
class Suggestion
  attr_accessor :term
  def self.index(create)
    [Person, Project, Orgunit].each{|kl|
      terms = self.all_terms(kl)
      terms.each{|term|
        suggestion =