NAME
Solstice::SearchField - Represents one field a model defines in the search index.
SYNOPSIS
#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
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
Copyright 1998-2007 Office of Learning Technologies, University of Washington
Licensed under the Educational Community License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.opensource.org/licenses/ecl1.php
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.