logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Plucene::Index::Term - a word from text

Description

       A Term represents a word from text, and is the unit of search.  It is composed of two elements, the text
       of the word, as a string, and the name of the field that the text occured in, as a string.

       Note that terms may represent more than words from text fields, but also things like dates, email
       addresses, urls, etc.

Methods

eq/ne/lt/gt/ge/le
       Exactly what you would think they are.

perl v5.36.0                                       2022-12-04                          Plucene::Index::Term(3pm)

Name

       Plucene::Index::Term - a word from text

Synopsis

               my $term = Plucene::Index::Term->new({
                               field => $field_name,
                               text  => $text,
               });

               # with two Plucene::Index::Term objects you can do:

               if ($term1->eq($term2)) { ... }

               # etc

See Also