Displaying 1 result from an estimated 1 matches for "init_results".
2006 Dec 18
1
Mulitple Indexes or one big index??
...is 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].load #
end
end
My solution to this would be to just have many indexes (eventually these
may number in the hundreds) each stored in its own unique directory and
then open, search, and close each index as needed. Is this a good idea?
Any input would really help,
Thanks
--...