NAME
Search::Xapian::QueryParser - Parse a query string into a Search::Xapian::Query object
DESCRIPTION
This module turns a human readable string into something Xapian can understand. The syntax supported is designed to be similar to other web based search engines, so that users familiar with them don't have to learn a whole new syntax.
SYNOPSIS
use Search::Xapian qw/:standard/;
my $qp = new Search::Xapian::QueryParser( [$database] );
$qp->set_stemming_options("english",1); # Replace 1 with 0 if you want to disable stemming
$qp->set_default_op(OP_AND);
$database->enquire($qp->parse_string('a word OR two NEAR "a phrase" NOT (too difficult) +eh'));
REFERENCE
http://www.xapian.org/docs/queryparser.html
http://www.xapian.org/docs/sourcedoc/html/classXapian_1_1QueryParser.html
TODO
Implement Xapian::Stopper.