1Xapian::MultiValueSorteUrs(e3r)Contributed Perl DocumentXaatpiioann::MultiValueSorter(3)
2
3
4

NAME

6       Search::Xapian::MultiValueSorter - allows sorting by a several values.
7

DESCRIPTION

9       Results are ordered by the first value.  In the event of a tie, the
10       second is used.  If this is the same for both, the third is used, and
11       so on.
12

SYNOPSIS

14         use Search::Xapian;
15
16         my $db = new Search::Xapian::Database("/path/to/db");
17         my $enq = new Search::Xapian::Enquire($db);
18         my $sorter = new Search::Xapian::MultiValueSorter(1, 3, 5);
19         $enq->set_sort_by_key($sorter);
20

METHODS

22       new [<value>...]
23           Construct and add the values listed.
24
25       add <value> [<forward>]
26           Add another value to sort on.  By default, values sort forwards,
27           unless forward is specified and is false.
28

REFERENCE

30         https://xapian.org/docs/sourcedoc/html/classXapian_1_1MultiValueSorter.html
31
32
33
34perl v5.34.0                      2021-07-22       Xapian::MultiValueSorter(3)
Impressum