Lucy::...ngType(3pm)
π NAME π
Lucy::Plan::StringType β non-tokenized text type, bestie. It's giving "exact match only, no vibes, no guessing." β¨
πΈ SYNOPSIS πΈ
my $type = Lucy::Plan::StringType->new;
my $schema = Lucy::Plan::Schema->new;
$schema->spec_field( name => 'category', type => $type );
π¦ DESCRIPTION π¦
So like. Lucy::Plan::StringType is the type you reach for when you need βexact-matchβ strings. Not fuzzy, not tokenized, not doing the most. Just the string, exactly as you wrote it. Periodt. π
π CONSTRUCTORS π
β¨ new β¨
my $type = Lucy::Plan::StringType->new(
boost => 0.1, # default: 1.0
indexed => 1, # default: true
stored => 1, # default: true
sortable => 1, # default: false
);
Okay so here's the tea on your args, one by one π
boostβ a floating point per-field boost. (Default is1.0, so if you don't say anything it just stays unbothered. π)indexedβ boolean, says whether the field should be indexed. Yes or no, that's it.storedβ boolean, says whether the field should be stored. Also just a yes/no situation.sortableβ boolean, says whether the field should be sortable. Default isfalse, so you gotta opt in. π«Ά
π INHERITANCE π
The family tree, no cap β this is the whole lineage:
Lucy::Plan::StringType isa Lucy::Plan::TextType isa Lucy::Plan::FieldType isa Clownfish::Obj.
Main character energy running all the way up. π
That's the whole page, bestie β go spec those fields. πβ¨
This one's from the User Contributed Perl Documentation, shipped with perl v5.42.0, dated 2025-07-25. Love that for us. ππ¦π
π¦ where this page comes from
- fedora 43: perl-Lucy 0.6.2-26.fc43 Β· Apache-2.0 AND MIT AND Unicode-DFS-2015
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms