GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Plucene::Search::TermQuery(3) User Contributed Perl Documentation Plucene::Search::TermQuery(3)

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

        # isa Plucene::Search::Query

        $term_query->normalize($norm);

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

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.

Get / set these attributes

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

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

        $term_query->normalize($norm);

        my $as_string = $term_query->as_string($field);
2005-09-05 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.