Name

MV_DEFAULT_SEARCH_DB — (partly documented)

SYNOPSIS

{ }

DESCRIPTION

Specifies that an unspecified (default) search will be a db search, not a text search.

VARIABLE TYPE

Catalog variable

EXAMPLES

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

NOTES

AVAILABILITY

MV_DEFAULT_SEARCH_DB is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Scan.pm
Line 519 (context shows lines 509-523 in perform_search():416)


SEARCH: {
  $options{mv_return_all} = 1
    if $options{mv_dict_look} and ! $options{mv_searchspec};

  if (defined $pre_made) {
    $q = $pre_made;
    @{$q}{keys %options} = (values %options);
  }
  elsif (
      ! $options{mv_searchtype} && $::Variable->{MV_DEFAULT_SEARCH_DB}
      or $options{mv_searchtype} =~ /db|sql/i
    )
  {
    $q = new Vend::DbSearch %options;

Source: lib/Vend/Scan.pm
Line 889 (context shows lines 879-893 in _file_security():879)

sub _file_security {
my ($junk, $param, $passed) = @_;
$passed = [] unless $passed;
my(@files) = grep /\S/, split /\s*[,\0]\s*/, $param, -1;
for(@files) {
my $ok = allowed_file($_);
if(!$ok) {
  $ok = 1 if $_ eq $::Variable->{MV_SEARCH_FILE};
  $ok = 1 if $::Scratch->{$_};
}
if(/^\w+$/ and ! $::Variable->{MV_DEFAULT_SEARCH_DB}) {
  $_ = $Vend::Cfg->{Database}{$_}{file}
      if defined $Vend::Cfg->{Database}{$_};
  }
  if ($ok and $Vend::Cfg->{NoSearch} and /$Vend::Cfg->{NoSearch}/) {

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!