Jens Kraemer wrote:

> To keep the index creation from happening when the index is accessed the
> first time from your app (could be a search, or some update/create
> operation), you can build up the index from the console, i.e.
> 
> RAILS_ENV=production script/console
>>> Model.rebuild_index
> 
> cheers,
> Jens


Thank you Jens. While all you say is true, the original rowset was over 
8.000.000 rows and would have taken days or more. I just wanted to do 
some experimentation to see if my code would work. AaF is not that well 
documented (well perhaps for those smarter than I) and therefore I 
thought my best best was to play with it in the console. Little did I 
realize it would go off and index the table to start.

And while you are correct that most of the time, you want an index, 
really there are use cases where you only want to index data from that 
time forward. Anyway I created a much smaller table and worked with it 
to start. However it created 28.000 files for 25.000 records. Still not 
quite right. But it does work in that I can search it.

BTW: Is there a method to say only return fields from the documents that 
matched and not all the fields of documents that had matches? Of course 
I did my own filter.


Best wishes and thank you for the advice and counsel.
Jeff

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to