Name

max_matches —

VALUE

DEFAULT

DESCRIPTION

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

max_matches is available in Interchange versions:

5.7.0 (git-head)

SOURCE

Interchange 5.7.0 (1/1 contexts shown):

Source: lib/Vend/DbSearch.pm
Line 241 (context shows lines 231-245 in search():116)

  $qual .= join $joiner, @{$s->{eq_specs_sql}};
}

$s->save_specs();

# set max_matches based on the lower of the pragma & the search parameter
# (so end-users can further restrict the size of the result set, but not increase it)
my $max_matches;
{
  no warnings 'uninitialized';
  $max_matches = $::Pragma->{max_matches};
  undef $max_matches if $max_matches < 1;
  my $search_mm = $s->{mv_max_matches};
  $max_matches = $search_mm
    if $search_mm > 0 and (!$max_matches or $search_mm < $max_matches);

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!