Solstice::SearchField - Represents one field a model defines in the search index.


Solstice documentation  | view source Contained in the Solstice distribution.

Index


NAME

Top

Solstice::SearchField - Represents one field a model defines in the search index.

SYNOPSIS

Top

#within a model's store method, for example:

my $content_field = $self->createSearchField('content', $self->getContent());

$content_field->setStored(0); $content_field->setCompressed(1);

DESCRIPTION

Top

This allows for the creation of a searched bit of content. The bit of content can then have various options set about it's behavior in the index.

new
getName
getContent
getOptions

Retuns a hash of the options you have set - this is for backend use mostly.

setWeight

Set the relevance multiplier for matches in this field

setIndexed

Do we search it or just store it with the record?

setAnalyzed

Is the field stemmed/stopworded/etc

setStored

Is the field stored or just indexed

setCompressed

Should the stored content be gzipped

setVectorized

Should vector data be generated and stored, so matches can be highlighted in excerpts while searching

COPYRIGHT

Top


Solstice documentation  | view source Contained in the Solstice distribution.