Plucene::QueryParser(3pm)

Plucene::QueryParser3pm

Turn query strings into plucene::search::query objects

Usage

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

Overview

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.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0
  4. 7–9
  5. 10–11
  6. 12–13

From libplucene-perl 1.25-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.