{
    "mode": "perldoc",
    "parameter": "Plucene::Search::Query",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ASearch%3A%3AQuery/json",
    "generated": "2026-07-05T13:44:05Z",
    "synopsis": "my $squery = Plucene::Search::Query::Subclass->new({\nboost => $boostfactor});\nmy $scorer = $squery->scorer($query, $searcher, $reader);",
    "sections": {
        "NAME": {
            "content": "Plucene::Search::Query - base class for queries\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "my $squery = Plucene::Search::Query::Subclass->new({\nboost => $boostfactor});\n\nmy $scorer = $squery->scorer($query, $searcher, $reader);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is an abstract base class for queries.\n\nA query is a specification of the content an properties of the desired documents. Every search\nis done by matching a query against the document index and locating the ones that match the\nquery.\n\nThe simplest query specifies a single term (or word) that is to be matched against a single\nfield (e.g. 'author') of each of the documents in the index. This kind of query matches any\ndocument that contains the term in the specified field.\n\nA more complex queries may contain nested queries with 'and', 'or', 'not' or 'phrase' relations.\nQueries may also contains specification of which document fields to match against the various\nparts of the query (.e.g. 'authors' and 'title') and hints that may effects the ranking of the\nmatched documents ('boost' factor).\n",
            "subsections": []
        },
        "METHODS": {
            "content": "new\nmy $squery = Plucene::Search::Query::Subclass->new({\nboost => $boostfactor});\n\nboost\nGet / set this attribute\n\nscorer\nmy $scorer = $squery->scorer\n(Plucene::Search::Query $query, $searcher, $reader);\n\nprepare\nDoes nothing\n\nsumsquaredweights / normalize  / scorer\nThese must be defined in a subclass\n",
            "subsections": []
        }
    },
    "summary": "Plucene::Search::Query - base class for queries",
    "flags": [],
    "examples": [],
    "see_also": []
}