It mentions that for highlight to work I must have {:store => :yes}.
However it also mentions that only “small” fields should be stored.
My question is how small is small enough.
I have a site where events information is maintained. I have events
title and events description. On an average the description is of 60
words and around 300 characters.
When search is performed I want to display the excerpt of description in
highlighted fashion. For that to work I need to {:store => :yes} the
description field.
What is the recommended practice. How others are displaying the
description highlight. I am leaning towards storing the whole
description. Is 60 words too many words?
It mentions that for highlight to work I must have {:store => :yes}.
However it also mentions that only “small” fields should be stored.
My question is how small is small enough.
that depends on how large you want your index to grow, and how long the
indexing may take
I have a site where events information is maintained. I have events
title and events description. On an average the description is of 60
words and around 300 characters.
That shouldn’t be a problem. To save space with large field contents you
may also use :store => :compressed, however with 300 characters that
shouldn’t be necessary.
Jens
–
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.