Search::Xapian::MultiValueSorter(3pm)

Search::Xapian::MultiValueSorter3pm

Allows sorting by a several values.

Usage

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

Overview

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

Methods

new [<value>...]

Construct and add the values listed.

add <value> [<forward>]

Add another value to sort on. By default, values sort forwards, unless forward is specified and is false.

Reference

  https://xapian.org/docs/sourcedoc/html/classXapian_1_1MultiValueSorter.html

Releases

9 releases since Debian 5.0 (Lenny); the text changed 8 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12
  9. 13

From libsearch-xapian-perl 1.2.25.5-3+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.