search for: all_databases

Displaying 1 result from an estimated 1 matches for "all_databases".

2006 Dec 18
1
Mulitple Indexes or one big index??
...at each of these documents has different fields (which the user defines) and this makes searching and displaying search results slightly difficult. I tried to attach a unique ID to each file indexed and then conduct a search within the documents that have the proper ID, but this failed. My code: all_databases=OtherDatabase.find(:all) all_databases.each do |dbase| index.search_each(''id:("#{dbase.id}) *:(*''+"#{@phrase}"+''*)'', :limit=>100) do |doc, score| @scores << score # add score to score array @init_results << index[doc].lo...