NAME

Dezi::Searcher::SearchOpts - options for the Dezi::Searcher->search method

SYNOPSIS

use Dezi::Searcher;
my $searcher = Dezi::Searcher->new();
my $results  = $searcher->search( 'foo bar', {
    start => 0,
    max   => 1000,
    order => 'title DESC',
    limit => [ [qw( lastmod 100000 200000 )] ],
    default_boolop => 'AND',
});
my $opts = $results->opts;  # isa Dezi::Searcher::SearchOpts

METHODS

The following attributes are defined.

start

The starting position. Default is 0.

max

The ending position. Default is max_hits() as documented in Dezi::Searcher.

order

Takes a SQL-like text string (parse-able by Sort::SQL), or an object defined by the Searcher class, which will determine the sort order.

limit

Takes an arrayref of arrayrefs. Each child arrayref should have three values: a field (PropertyName) value, a lower limit and an upper limit.

default_boolop

The default Boolean connector for parsing query. Valid values are AND and OR. The default is AND (which is different than Lucy::QueryParser, but the same as Swish-e).

AUTHOR

Peter Karman, <karpet@dezi.org>

BUGS

Please report any bugs or feature requests to bug-dezi-app at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dezi-App. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Dezi::Searcher::SearchOpts

You can also look for information at:

COPYRIGHT AND LICENSE

Copyright 2018 by Peter Karman

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

http://dezi.org/, http://swish-e.org/, http://lucy.apache.org/