On 8/1/06, Pedro Côrte-Real <[EMAIL PROTECTED]> wrote:
> On Mon, 2006-07-31 at 19:36 +0200, Jens Kraemer wrote:
> > > I forgot that I was actually supplying my own #to_doc so it was a matter
> > > of changing it to not tokenize the fields I want. When using
> > > acts_as_ferret the regular way I don't know if this is possible.
> >
> > it is, just provide a hash with the desired options to each field name:
> >
> > acts_as_ferret(
> > :fields => {
> > 'title' => { :boost => 2 },
> > 'description' => { :boost => 1,
> > :index => Ferret::Document::Field::Index::UNTOKENIZED
> > }
> > })
> >
> > options that can be set this way are (with their defaults given):
> >
> > :store => Ferret::Document::Field::Store::NO
> > :index => Ferret::Document::Field::Index::TOKENIZED
> > :term_vector => Ferret::Document::Field::TermVector::NO
> > :binary => false
> > :boost => 1.0
>
> By the way, does storing the TermVectors only increase the size of the
> index or does it alter performance in any way?
It increases the size of the index and affects indexing performance
since a lot of extra data needs to be written and merged during the
indexing process. Search performance won't be affected.
Dave
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk