1Lucy::Analysis::EasyAnaUlsyezrerC(o3n)tributed Perl DocuLmuecnyt:a:tAinoanlysis::EasyAnalyzer(3)
2
3
4
6 Lucy::Analysis::EasyAnalyzer - A simple analyzer chain.
7
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
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
42 new
43 my $analyzer = Lucy::Analysis::EasyAnalyzer->new(
44 language => 'es',
45 );
46
47 Create a new EasyAnalyzer.
48
49 • language - An ISO code from the list of supported languages.
50
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
58 • inversion - An inversion.
59
61 Lucy::Analysis::EasyAnalyzer isa Lucy::Analysis::Analyzer isa
62 Clownfish::Obj.
63
64
65
66perl v5.34.0 2022-01-21 Lucy::Analysis::EasyAnalyzer(3)