1Lucy::Analysis::EasyAnaUlsyezrerC(o3nptmr)ibuted Perl DoLcuucmye:n:tAantailoynsis::EasyAnalyzer(3pm)
2
3
4

NAME

6       Lucy::Analysis::EasyAnalyzer - A simple analyzer chain.
7

SYNOPSIS

9           my $schema = Lucy::Plan::Schema->new;
10           my $analyzer = Lucy::Analysis::EasyAnalyzer->new(
11               language => 'en',
12           );
13           my $type = Lucy::Plan::FullTextType->new(
14               analyzer => $analyzer,
15           );
16           $schema->spec_field( name => 'title',   type => $type );
17           $schema->spec_field( name => 'content', type => $type );
18

DESCRIPTION

20       EasyAnalyzer is an analyzer chain consisting of a StandardTokenizer, a
21       Normalizer, and a SnowballStemmer.
22
23       Supported languages:
24
25           en => English,
26           da => Danish,
27           de => German,
28           es => Spanish,
29           fi => Finnish,
30           fr => French,
31           hu => Hungarian,
32           it => Italian,
33           nl => Dutch,
34           no => Norwegian,
35           pt => Portuguese,
36           ro => Romanian,
37           ru => Russian,
38           sv => Swedish,
39           tr => Turkish,
40

CONSTRUCTORS

42   new
43           my $analyzer = Lucy::Analysis::EasyAnalyzer->new(
44               language  => 'es',
45           );
46
47       Create a new EasyAnalyzer.
48
49language - An ISO code from the list of supported languages.
50

METHODS

52   transform
53           my $inversion = $easy_analyzer->transform($inversion);
54
55       Take a single Inversion as input and returns an Inversion, either the
56       same one (presumably transformed in some way), or a new one.
57
58inversion - An inversion.
59

INHERITANCE

61       Lucy::Analysis::EasyAnalyzer isa Lucy::Analysis::Analyzer isa
62       Clownfish::Obj.
63
64
65
66perl v5.38.0                      2023-07-20 Lucy::Analysis::EasyAnalyzer(3pm)
Impressum