line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
46
|
|
|
46
|
|
3318
|
use strict; |
|
46
|
|
|
|
|
96
|
|
|
46
|
|
|
|
|
1595
|
|
2
|
46
|
|
|
46
|
|
240
|
use warnings; |
|
46
|
|
|
|
|
79
|
|
|
46
|
|
|
|
|
2090
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package KinoSearch::Test::USConSchema; |
5
|
46
|
|
|
46
|
|
393
|
use base 'KinoSearch::Plan::Schema'; |
|
46
|
|
|
|
|
78
|
|
|
46
|
|
|
|
|
27191
|
|
6
|
46
|
|
|
46
|
|
23656
|
use KinoSearch::Analysis::PolyAnalyzer; |
|
46
|
|
|
|
|
117
|
|
|
46
|
|
|
|
|
1466
|
|
7
|
46
|
|
|
46
|
|
40616
|
use KinoSearch::Plan::FullTextType; |
|
46
|
|
|
|
|
126
|
|
|
46
|
|
|
|
|
1370
|
|
8
|
46
|
|
|
46
|
|
26350
|
use KinoSearch::Plan::StringType; |
|
46
|
|
|
|
|
129
|
|
|
46
|
|
|
|
|
14137
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
1
|
|
|
1
|
1
|
30
|
my $self = shift->SUPER::new(@_); |
12
|
1
|
|
|
|
|
42
|
my $analyzer |
13
|
|
|
|
|
|
|
= KinoSearch::Analysis::PolyAnalyzer->new( language => 'en' ); |
14
|
1
|
|
|
|
|
49
|
my $title_type |
15
|
|
|
|
|
|
|
= KinoSearch::Plan::FullTextType->new( analyzer => $analyzer, ); |
16
|
1
|
|
|
|
|
13
|
my $content_type = KinoSearch::Plan::FullTextType->new( |
17
|
|
|
|
|
|
|
analyzer => $analyzer, |
18
|
|
|
|
|
|
|
highlightable => 1, |
19
|
|
|
|
|
|
|
); |
20
|
1
|
|
|
|
|
23
|
my $url_type = KinoSearch::Plan::StringType->new( indexed => 0, ); |
21
|
1
|
|
|
|
|
9
|
my $cat_type = KinoSearch::Plan::StringType->new; |
22
|
1
|
|
|
|
|
43
|
$self->spec_field( name => 'title', type => $title_type ); |
23
|
1
|
|
|
|
|
11
|
$self->spec_field( name => 'content', type => $content_type ); |
24
|
1
|
|
|
|
|
11
|
$self->spec_field( name => 'url', type => $url_type ); |
25
|
1
|
|
|
|
|
10
|
$self->spec_field( name => 'category', type => $cat_type ); |
26
|
1
|
|
|
|
|
6
|
return $self; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |