Lucy::...ngType(3pm)

πŸ“¦
version 0.6.2 Β· 2 versions
, in fedora 43

πŸ’– 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 is 1.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 is false, 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