Jens Kraemer wrote: > On Mon, Mar 19, 2007 at 06:46:00AM +0100, Star Burger wrote: >> I'm using acts_as_ferret and have indexed a model with acts_as_ferret >> :fields => [:name, :ascii_name, :alt_names], :single_index => true. >> >> Now in the index directory more than 95.000 files are generated! The >> number of tuples I'm indexing is approx. 86.000. > > That doesn't sound ok. Is the index useable? And did you do a rebuild > that resultet in this index or was it normal application usage? > >> I can't remember this from earlier ferret/acts_as_ferret versions where >> I've indexed millions of tuples without having such a number of files. >> >> Is there a way of reducing the number of index files? What are the >> consequences? > > Try to optimize the index - either directly with Ferret > i = Ferret::I.new(:path => 'path/to/index') > i.optimize > > or via aaf: > > Model.aaf_index.ferret_index.optimize > >> >> Thanks. >>
The index is usable (although doesn't seem to be the fastest) and is a direct result of Model.rebuild_index. The index wasn't built up step by step from application usage, but with a singel rebuild_index from a filled DB. starburger -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

