192 |
return; |
return; |
193 |
} |
} |
194 |
|
|
|
=cut |
|
|
|
|
195 |
=head2 snippet |
=head2 snippet |
196 |
|
|
197 |
my $short = $self->snippet( 50, $text ); |
my $short = $self->snippet( 50, $text ); |
221 |
|
|
222 |
=head1 NAME |
=head1 NAME |
223 |
|
|
224 |
Grep::Search::Schema - data definition |
Grep::Search::Schema - schema definition for full-text search |
225 |
|
|
226 |
=cut |
=cut |
227 |
|
|
228 |
use base 'KinoSearch::Schema'; |
use base 'KinoSearch::Schema'; |
229 |
use KinoSearch::Analysis::PolyAnalyzer; |
use KinoSearch::Analysis::PolyAnalyzer; |
230 |
|
|
231 |
our %FIELDS = ( |
our %fields = ( |
232 |
id => 'Grep::Search::KeywordField', |
id => 'Grep::Search::KeywordField', |
233 |
|
|
234 |
in_feed_id => 'Grep::Search::KeywordField', |
in_feed_id => 'Grep::Search::KeywordField', |