diff -ru Search-Xapian-1.2.20.0.orig/Xapian/Enquire.pm Search-Xapian-1.2.20.0/Xapian/Enquire.pm
old
|
new
|
|
34 | 34 | } |
35 | 35 | } |
36 | 36 | |
| 37 | sub set_collapse_key { |
| 38 | my $self = shift; |
| 39 | my $valueno = shift; |
| 40 | my $nargs = scalar(@_); |
| 41 | if( $nargs > 1) { |
| 42 | Carp::carp( "USAGE: \$enquire->set_collapse_key(\$valueno) or \$enquire->set_collapse_key(\$valueno, \$count)" ); |
| 43 | exit; |
| 44 | } |
| 45 | if( $nargs == 0 ) { |
| 46 | $self->set_collapse_key1( $valueno ); |
| 47 | } else { |
| 48 | $self->set_collapse_key2( $valueno, shift ); |
| 49 | } |
| 50 | } |
| 51 | |
37 | 52 | sub get_mset { |
38 | 53 | my $self = shift; |
39 | 54 | my $nargs = scalar(@_); |
diff -ru Search-Xapian-1.2.20.0.orig/XS/Enquire.xs Search-Xapian-1.2.20.0/XS/Enquire.xs
old
|
new
|
|
47 | 47 | RETVAL |
48 | 48 | |
49 | 49 | void |
50 | | Enquire::set_collapse_key(collapse_key) |
| 50 | Enquire::set_collapse_key1(collapse_key) |
51 | 51 | valueno collapse_key |
52 | 52 | CODE: |
53 | 53 | try { |
… |
… |
|
55 | 55 | } catch (...) { |
56 | 56 | handle_exception(); |
57 | 57 | } |
| 58 | |
| 59 | void |
| 60 | Enquire::set_collapse_key2(collapse_key, count) |
| 61 | valueno collapse_key |
| 62 | int count |
| 63 | CODE: |
| 64 | try { |
| 65 | THIS->set_collapse_key(collapse_key, count); |
| 66 | } catch (...) { |
| 67 | handle_exception(); |
| 68 | } |
58 | 69 | |
59 | 70 | void |
60 | 71 | Enquire::set_docid_order(order) |