Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Plucene::Search::TermQuery

Name Plucene::Search::TermQuery
Version
Located at /usr/share/perl5
File /usr/share/perl5/Plucene/Search/TermQuery.pm
Is Core No
Search CPAN for this module Plucene::Search::TermQuery
Documentation Plucene::Search::TermQuery
Module Details Plucene::Search::TermQuery

NAME

Plucene::Search::TermQuery - a query that contains a term


SYNOPSIS

        # isa Plucene::Search::Query
        $term_query->normalize($norm);
        my       $ssw = $term_query->sum_squared_weights($searcher);
        my $as_string = $term_query->as_string($field);


DESCRIPTION

A query that matches a document containing a term.

Term query are the simplest possible Plucene queries and are used to match a single word. Term queries are represented by instances of the TermQuery class and contain the desired term (word) and a field name, both are case sensitive.

The field specified in a Term query must be a document field that was specified as 'indexible' during the indexing process. If the field was specified during indexing as 'tokenized' than the term will be matched against each of tokens (words) found in that field, otherwise, it will be matched against the entire content of that field.

A term query may have an optional boost factor (default = 1.0) that allows to increase or decrease the ranking of documents it matches.


METHODS

term / idf / weight

Get / set these attributes

sum_squared_weights

        my $ssw = $term_query->sum_squared_weights($searcher);

This will return the sum squared weights for the passed in searcher.

normalize

        $term_query->normalize($norm);

to_string

        my $as_string = $term_query->as_string($field);

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026