search for: full_text

Displaying 2 results from an estimated 2 matches for "full_text".

2006 May 22
7
how to index the result of any instance method
Hi, One of the AAF features is to be able to index results of methods, but I haven''t seen anywhere how to do this. I have a method that returns the full text of a file and I''d like for this to be indexed. Can anyone out there help me out on this one? Tom -- Posted via http://www.ruby-forum.com/.
2010 Mar 03
0
Using gsub to replace text with link from database
...is is where I''m at: #This code is taking the sentence and scanning it for two words that are next to each other that have the first letter capitalized @new_link_array = #this is the link data that is returned from my query search via ferret. It will provide the proper link to the players. @full_text = params[:q] @full_text_array = @full_text.scan(/([A-Z]+[a-zA-Z]* [A-Z]+[a-zA-Z]*)/) @full_text_array.each_with_index do |original_name, i| @full_text.gsub!(original_name.to_s, @new_link_array[i]) end results = @full_text.scan(/([A-Z]+[a-zA-Z]* [A-Z]+[a-zA-Z]*)/) names_links = {} results....