Lucy::Plan::FullTextType3pm
Full-text search field type.
Usage
my $polyanalyzer = Lucy::Analysis::PolyAnalyzer->new(language => 'en',);my $type = Lucy::Plan::FullTextType->new(analyzer => $polyanalyzer,);my $schema = Lucy::Plan::Schema->new;$schema->spec_field( name => 'title', type => $type );$schema->spec_field( name => 'content', type => $type );
Overview
Lucy::Plan::FullTextType is an implementation of Lucy::Plan::FieldType tuned for "full text search".
Full text fields are associated with an Analyzer, which is used to tokenize and normalize the text so that it can be searched for individual words.
For an exact-match, single value field type using character data, see StringType.
Constructors
new( [labeled params] )
my $type = Lucy::Plan::FullTextType->new(analyzer => $analyzer, # requiredboost => 2.0, # default: 1.0indexed => 1, # default: truestored => 1, # default: truesortable => 1, # default: falsehighlightable => 1, # default: false);
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
Methods
set_highlightable(highlightable)
Indicate whether to store data required by Lucy::Highlight::Highlighter for excerpt selection and search term highlighting.
highlightable()
Accessor for "highlightable" property.
Inheritance
Lucy::Plan::FullTextType isa Lucy::Plan::TextType isa Lucy::Plan::FieldType isa Lucy::Object::Obj.
Releases
2 releases since Debian 8 (Jessie); the text changed 1 time.