archie/release/base/help/english/set/maxhits/=

56 lines
1.8 KiB
Plaintext
Raw Normal View History

2024-05-28 17:59:32 +02:00
You can control the number of results returned in the archie system by 3
variables. 'maxhits', 'maxmatch' and 'maxhitspm'.
'maxhits' is a numeric variable whose value is the maximum number of
matches you want the 'find' command to generate.
If archie seems to be slow, or you don't want a lot of output this can be
set to a small value. "maxhits" must be within the range 0 to 1000. The
default value is 1000.
Example:
set maxhits 100
'find' will now stop after 100 matches have been found
There are 2 variables which work with the 'maxhits' variable to modify
the behavior of the search mechanism. They are 'maxmatch' and
'maxhitspm'. The database can be viewed as follows:
filename1 ----> file1 -> file2 -> file3
|
V
filename2 ----> file1 -> file2 -> file3 -> file4
|
V
filename3 ----> file1
|
V
(etc)
Each filename can have several files associated with it which share that
name. For example, the string "README" is only stored once but points to
the information for each of the files in the database called README
spread around all the anonymous FTP sites on the Internet (which, as you
can imagine are numerous).
The maximum total number of "files" (hits) returned is determined by the
'maxhits' variable. The maximum number of filenames that match is
determined by the 'maxmatch' variable. Finally if you only want to
return a limited number of files for each filename matched, use the
'maxhitspm' variable.
If you do the following:
set maxhits 20
set maxmatch 5
set maxthitspm 7
Then you will match at most 5 filenames. For each filename you will be
given back at most 7 files with that name. However, in total you will
only be returned 20 hits, since maxhits operates on the total number
regardless of the the combinations of the hits.