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.
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ferret-talk mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/ferret-talk
> 

-- 
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
 
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to