KinoSe...::Term(3pm)

πŸ’– NAME πŸ’–

KinoSearch1::Index::Term β€” it's literally just a string of text that's tied to a field, bestie. That's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

my $foo_term   = KinoSearch1::Index::Term->new( 'content', 'foo' );
my $term_query = KinoSearch1::Search::TermQuery->new( term => $foo_term );

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: the Term is the unit of search. Like, the smallest little guy you can actually go looking for. 🧚

It's got exactly two characteristics, no more, no less:

  • a field name
  • and some term text

That's it. Two things. She's low maintenance, she's iconic, she knows what she is. πŸ’…


🌸 METHODS 🌸

πŸŽ€ new

my $term = KinoSearch1::Index::Term->new( FIELD_NAME, TERM_TEXT );

It's the constructor, bestie β€” you're birthing a brand new Term right here, handing it a field name and some term text, and off she goes. πŸ‘‘

πŸ’œ set_text get_text set_field get_field

Getters and setters, fr fr. That's the whole job description. You want a value, you get it; you want to hand over a new one, you set it. No drama, no plot twists. 🫢

⭐ to_string

Returns a string representation of the Term object. It's giving "here's my Term, but as a lil string." πŸ¦‹


Copyright 2005-2010 Marvin Humphrey


🌈 LICENSE, DISCLAIMER, BUGS, etc. 🌈

See KinoSearch1 version 1.01.


ngl, that's the whole page, and she ate. no crumbs left. πŸ’–

✨ mwah, that's a wrap on KinoSe...::Term(3pm) from the User Contributed Perl Documentation, shipped with perl v5.42.3, dated 2026-08-20. go be the main character of your own index, bestie πŸ’…πŸŒΈ

πŸ“¦ where this page comes from