Name

MV_DEFAULT_MATCHLIMIT — specifies the number of search results per page

SYNOPSIS

number

DESCRIPTION

The MV_DEFAULT_MATCHLIMIT variable specifies the default for the number of search results displayed on one page. You can override this value for a specific search with the mv_matchlimit search parameter. The default value for MV_DEFAULT_MATCHLIMIT is 50.

VARIABLE TYPE

Catalog variable

EXAMPLES

Example:

Variable MV_DEFAULT_MATCHLIMIT 20

NOTES

AVAILABILITY

MV_DEFAULT_MATCHLIMIT is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Scan.pm
Line 947 (context shows lines 937-951 in _matchlimit():943)

$limit = -1 if $limit =~ /^[^-0-9]/;
$ref->{mv_dict_end} = $ref->{mv_dict_look};
substr($ref->{mv_dict_end},$limit,1) =~ s/(.)/chr(ord($1) + 1)/e;
return $_[1];
}

sub _matchlimit {
shift;
my $val = lc(shift);
return -1 if $val eq 'none' or $val eq 'all';
return int($val) || $::Variable->{MV_DEFAULT_MATCHLIMIT} || 50;
}

1;
__END__

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!