I figured it out.  All that was necessary was to create two entries for  
an indexable record, one for each field I wanted to index.  Then, the  
array is built in the 'update_index' call, not the IndexableRecord.new call.

For example, it would look like this:

      index_text = IndexableRecord::IndexData.new(@document.text, url,  
@document.name)
      index_comment = IndexableRecord::IndexData.new(@document.comment,  
url, @document.name)
      IndexableRecord.index_records([index_text, index_comment])


On Monday, February 13, 2006, at 10:12 PM, Joshua Schairbaum wrote:
>
>
>Does anyone know of a way to index multiple fields in this engine?  I've
>tried making an array from the field list, but it doesn't seem to work.
>
>Any help would be appreciated.
>
>Thanks
>Josh





-- 
Posted with http://DevLists.com.  Sign up and save your time!
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to