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::QueryParser

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

NAME

Plucene::QueryParser - Turn query strings into Plucene::Search::Query objects


SYNOPSIS

        my $p = Plucene::QueryParser->new({
                analyzer => Plucene::Analysis::Analyzer $a,
                default  => "text"
        });
        my Plucene::Search::Query $q = $p->parse("foo bar:baz");


DESCRIPTION

This module is responsible for turning a query string into a Plucene::Query object. It needs to have an Analyzer object to help it tokenize incoming queries, and it also needs to know the default field to be used if no field is given in the query string.


METHODS

new

        my $p = Plucene::QueryParser->new({
                analyzer => Plucene::Analysis::Analyzer $a,
                default  => "text"
        });

Construct a new query parser

parse

        my Plucene::Search::Query $q = $p->parse("foo bar:baz");

Turns the string into a query object.

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