{
    "mode": "perldoc",
    "parameter": "Plucene::Search::TermQuery",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ASearch%3A%3ATermQuery/json",
    "generated": "2026-10-08T20:24:30Z",
    "synopsis": "# isa Plucene::Search::Query\n$termquery->normalize($norm);\nmy       $ssw = $termquery->sumsquaredweights($searcher);\nmy $asstring = $termquery->asstring($field);",
    "sections": {
        "NAME": {
            "content": "Plucene::Search::TermQuery - a query that contains a term\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "# isa Plucene::Search::Query\n\n$termquery->normalize($norm);\n\nmy       $ssw = $termquery->sumsquaredweights($searcher);\nmy $asstring = $termquery->asstring($field);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "A query that matches a document containing a term.\n\nTerm query are the simplest possible Plucene queries and are used to match a single word. Term\nqueries are represented by instances of the TermQuery class and contain the desired term (word)\nand a field name, both are case sensitive.\n\nThe field specified in a Term query must be a document field that was specified as 'indexible'\nduring the indexing process. If the field was specified during indexing as 'tokenized' than the\nterm will be matched against each of tokens (words) found in that field, otherwise, it will be\nmatched against the entire content of that field.\n\nA term query may have an optional boost factor (default = 1.0) that allows to increase or\ndecrease the ranking of documents it matches.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "term / idf / weight\nGet / set these attributes\n\nsumsquaredweights\nmy $ssw = $termquery->sumsquaredweights($searcher);\n\nThis will return the sum squared weights for the passed in searcher.\n\nnormalize\n$termquery->normalize($norm);\n\ntostring\nmy $asstring = $termquery->asstring($field);\n",
            "subsections": []
        }
    },
    "summary": "Plucene::Search::TermQuery - a query that contains a term",
    "flags": [],
    "examples": [],
    "see_also": []
}