home *** CD-ROM | disk | FTP | other *** search
/ In'side Shareware 1995 March / ish0395.iso / win_util / dtsearch / batch.doc < prev    next >
Text File  |  1994-06-01  |  29KB  |  750 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.                             dtSearch Batch Script Language
  20.  
  21.                                     User's Manual
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.                            Copyright 1994 DT Software, Inc.
  44.  
  45.  
  46.  
  47.  
  48.                                        Contents
  49.  
  50.               1.  Introduction: Basic Batch Indexing  . . . . . . . . .   1
  51.                   a.  Automatic Generation of Batch Scripts . . . . . .   1
  52.                   b.  Running a batch script  . . . . . . . . . . . . .   2
  53.               2.  Script files  . . . . . . . . . . . . . . . . . . . .   2
  54.               3.  Indexing Commands . . . . . . . . . . . . . . . . . .   3
  55.                   a.  Create Index  . . . . . . . . . . . . . . . . . .   3
  56.                   b.  Add Documents to Index  . . . . . . . . . . . . .   4
  57.                   c.  Indexing subdirectories . . . . . . . . . . . . .   5
  58.                   d.  Update index  . . . . . . . . . . . . . . . . . .   5
  59.                   e.  Compress an Index . . . . . . . . . . . . . . . .   5
  60.               4.  Search Commands . . . . . . . . . . . . . . . . . . .   5
  61.                   a.  Index Searches  . . . . . . . . . . . . . . . . .   5
  62.                   b.  Search Results  . . . . . . . . . . . . . . . . .   6
  63.                   c.  Listing files . . . . . . . . . . . . . . . . . .   6
  64.                   d.  Search Reports  . . . . . . . . . . . . . . . . .   7
  65.               5.  Listing commands  . . . . . . . . . . . . . . . . . .   7
  66.                   a.  LIST WORDS  . . . . . . . . . . . . . . . . . . .   8
  67.                   b.  LIST FILES  . . . . . . . . . . . . . . . . . . .   8
  68.                   c.  LIST INFO . . . . . . . . . . . . . . . . . . . .   8
  69.                   d.  LIST TEXT . . . . . . . . . . . . . . . . . . . .   9
  70.               6.  Other Commands  . . . . . . . . . . . . . . . . . . .   9
  71.               7.  Environment variables . . . . . . . . . . . . . . . .  10
  72.               8.  DDE API . . . . . . . . . . . . . . . . . . . . . . .  10
  73.               9.  Reference . . . . . . . . . . . . . . . . . . . . . .  10
  74.  
  75.  
  76.  
  77.           1.  Introduction: Basic Batch Indexing
  78.           ----------------------------------------------------------------
  79.  
  80.               Batch mode indexing allows you to create, update, and
  81.           compress a document index by running dtSearch from the command
  82.           line or, in Windows, using DDE.  Batch mode indexing can be
  83.           useful if, for example, you want to perform a complex and time-
  84.           consuming series of tasks every night to update your indexes.
  85.  
  86.               To set up a batch indexing job, first create a "script" that
  87.           lists the tasks that you want dtSearch to perform.  A script is a
  88.           text file that lists a series of indexing commands that dtSearch
  89.           will carry out.
  90.  
  91.               a.  Automatic Generation of Batch Scripts
  92.  
  93.               The easiest way to create a script is to use the Create Batch
  94.           Script option in the Index menu.  When you select this option, a
  95.           dialog box will appear that is almost identical to the "Add
  96.           Documents to Index" dialog box.
  97.  
  98.               Fill out the box exactly as you would if you were updating an
  99.           index.  See the section on "Adding Documents to an Index" in the
  100.           "Indexing Documents" chapter for more information about the
  101.  
  102.  
  103.  
  104.                                           2
  105.  
  106.           options in the Create Batch Script dialog box.
  107.  
  108.               When you are done setting up the indexing job, choose OK to
  109.           create a script.  A dialog box will pop up asking for the name of
  110.           the script to create.  Enter a name for the script and choose OK. 
  111.           dtSearch will then store all of the information you have provided
  112.           (the index to update, the directories to index, etc.) in a script
  113.           file that you can run later.
  114.  
  115.               b.  Running a batch script
  116.  
  117.               To run the script that you created, first exit dtSearch.  A
  118.           batch script cannot be run from the DOS shell option in the File
  119.           menu.  After you are out of dtSearch, type the following at the
  120.           DOS prompt:
  121.  
  122.               DTSEARCH /SCRIPT MYSCRIPT.JOB
  123.  
  124.           where "MYSCRIPT.JOB" is the name of your script.  You should be
  125.           in the directory where dtSearch is installed when you do this. 
  126.           If you created the script in a different directory, you will need
  127.           to supply the full pathname of the script, e.g.,
  128.           C:\WHATEVER\MYSCRIPT.JOB.  dtSearch will then perform the
  129.           indexing task you specified.
  130.  
  131.               dtSearch will record any errors encountered during the job in
  132.           a file called MYSCRIPT.LOG.  Errors and informational messages
  133.           will not be displayed on the screen, since dtSearch assumes that
  134.           batch jobs will run without someone watching them.  After a batch
  135.           indexing job, you should check the log file to see if any errors
  136.           occurred.
  137.  
  138.               This is all that you need to know to set up basic batch
  139.           indexing tasks.
  140.  
  141.           2.  Script files
  142.           ----------------------------------------------------------------
  143.  
  144.               A script file is any text file that dtSearch can read.  You
  145.           can create a script using the Create Batch Script option in the
  146.           Index menu, or you can create a script by hand.  Before you try
  147.           to write your own scripts, you may want to create an example
  148.           using the Create Batch Script function so you can see what a
  149.           batch script looks like.  After you create the script, choose
  150.           View File in the File menu to read it.  Using Edit File, you can
  151.           easily edit the script to create a new script.
  152.  
  153.               You can also create a script outside of dtSearch.  A script
  154.           can be ASCII text or it can be in one of the word processor
  155.           formats that dtSearch recognizes, such as WordPerfect or
  156.           WordStar.  The first line of a script must consist of the words
  157.           DTSEARCH SCRIPT.
  158.  
  159.  
  160.  
  161.                                           3
  162.  
  163.               A script consists of a series of "SET" statements that
  164.           specify the documents to be indexed and the index to use, and
  165.           commands such as "ADD" and "COMPRESS."  dtSearch ignores any line
  166.           beginning with a *, so you can include comments in a script. 
  167.           Here is an example:
  168.  
  169.               DTSEARCH SCRIPT
  170.               * Create the index
  171.               SET INDEXNAME = MyIndex
  172.               CREATE
  173.               * Add documents from C:\DOCS 
  174.               SET DOCPATH = C:\DOCS
  175.               SET FILTER = *.DOC *.TXT *.WPF
  176.               ADD
  177.               * Compress the index
  178.               COMPRESS
  179.  
  180.           This script would (1) create an index called "MyIndex," (2) add
  181.           to the index documents in the directory C:\DOCS, and (3) compress
  182.           the index.  (You can combine several different indexing and
  183.           searching operations in a single script.)  To run this script,
  184.           put it in the file UPDATE.JOB in the dtSearch directory and
  185.           execute the command:
  186.  
  187.               DTSEARCH /SCRIPT UPDATE.JOB
  188.  
  189.           from the dtSearch directory.  dtSearch will then execute the
  190.           script, logging any error messages to the file UPDATE.LOG.
  191.  
  192.           3.  Indexing Commands
  193.           ----------------------------------------------------------------
  194.  
  195.               a.  Create Index
  196.  
  197.               To create an index, set up a script like this:
  198.  
  199.               DTSEARCH SCRIPT
  200.               SET INDEXNAME = MyIndex
  201.               SET INDEXPATH = C:\DOCINDEX
  202.               CREATE
  203.  
  204.               The two SET statements tell the program what you want to call
  205.           the index and the directory you want to put it into.  The
  206.           "CREATE" statement tells dtSearch to create the index in the
  207.           specified directory.
  208.  
  209.               There are three options you can use with CREATE:  ARCHIVE,
  210.           CASE, and ACCENT.
  211.  
  212.           ARCHIVE:    Use this option if you want to create an archive
  213.                       index.  This is an index that contains the text of
  214.                       indexed documents, in compressed form.
  215.  
  216.  
  217.  
  218.                                           4
  219.  
  220.           CASE:   Use this option if you want the index to be case-
  221.                   sensitive.
  222.  
  223.           ACCENT: Use this option if you want the index to be accent-
  224.                   sensitive.
  225.  
  226.           To use one or more of these options, simply list them on the same
  227.           line as the CREATE command:
  228.  
  229.               CREATE ARCHIVE CASE
  230.  
  231.               WARNING:  Please be careful when using CREATE.  If you create
  232.           an index that already exists, dtSearch will delete the old index
  233.           and create a new, empty index in its place.  In interactive mode,
  234.           you will get a warning message before this happens, but in batch
  235.           mode dtSearch simply assumes that you really want to create a new
  236.           index.
  237.  
  238.               b.  Add Documents to Index
  239.  
  240.               To add documents to an index in a batch script, you need to
  241.           select an index to add to, list the directories to index, and
  242.           list the file name filters you want to use.
  243.  
  244.               Use "SET DOCPATH =" to tell dtSearch the directory in which
  245.           the documents are located.  If you want to index more than one
  246.           directory, list the directories with plus signs ("+") separating
  247.           them, like this:
  248.  
  249.               SET DOCPATH = C:\ONE + C:\TWO +
  250.                   C:\THREE + C:\FOUR + 
  251.                   C:\FIVE 
  252.  
  253.           If the list of directories will take up more than one line, make
  254.           sure that each line ends in a plus sign so that dtSearch knows to
  255.           look on the next line for more directories.
  256.  
  257.               To specify file name filters, use "SET FILTER =".  Use "SET
  258.           EXCLUDE =" to specify files that you do not want to index.
  259.  
  260.               After you have provided the information dtSearch needs to
  261.           index your documents, use "ADD" to add the documents to the
  262.           index.  Example:
  263.  
  264.               DTSEARCH SCRIPT
  265.               SET INDEXNAME = MyIndex
  266.               SET DOCPATH = C:\DOCS + C:\DOCS2 + C:\DOCS3
  267.               SET FILTER = *.DOC *.TXT *.WPF
  268.               SET EXCLUDE = A*.DOC
  269.               ADD
  270.  
  271.           This would add documents from C:\DOCS, C:\DOCS2, and C:\DOCS3 to
  272.  
  273.  
  274.  
  275.                                           5
  276.  
  277.           the index "MyIndex."
  278.  
  279.               The CREATE function needs to know both the name and the
  280.           directory for an index, and so both the SET INDEXNAME and the SET
  281.           INDEXPATH must be present to create an index.  The ADD function
  282.           just needs to know which index you want to add documents to, so
  283.           you can use either the name (SET INDEXNAME) or the path (SET
  284.           INDEXPATH) to specify the index.
  285.  
  286.               c.  Indexing subdirectories
  287.  
  288.               If you want dtSearch to index a directory and all of its
  289.           subdirectories, add "&SUBS" after the name of the directory in
  290.           the SET DOCPATH command, like this:
  291.  
  292.               SET DOCPATH = C:\DOCS &SUBS
  293.  
  294.           This way you do not have to update your script each time you add
  295.           a subdirectory to the C:\DOCS directory.
  296.  
  297.               d.  Update index
  298.  
  299.               The UPDATEFILES command in a script will cause dtSearch to
  300.           reindex any documents in an index that have been modified since
  301.           the index was last updated.  If a document no longer exists,
  302.           dtSearch will remove it from the index.  This is the batch mode
  303.           equivalent to the "Update files in index" option in the Add
  304.           Documents to Index dialog box.  Example:
  305.  
  306.               DTSEARCH SCRIPT
  307.               SET INDEXNAME = MyIndex
  308.               UPDATEFILES
  309.  
  310.           NOTE:  For compatibility with earlier versions of dtSearch, the
  311.           REINDEX command has the same effect as UPDATEFILES.
  312.  
  313.               e.  Compress an Index
  314.  
  315.               To compress an index, use SET INDEXNAME or SET INDEXPATH to
  316.           specify the index to compress and then use the COMPRESS command. 
  317.           Example:
  318.  
  319.               DTSEARCH SCRIPT
  320.               SET INDEXNAME = MyIndex
  321.               COMPRESS
  322.  
  323.           4.  Search Commands
  324.           ----------------------------------------------------------------
  325.  
  326.               a.  Index Searches
  327.  
  328.               The following is an example of a batch script that would
  329.  
  330.  
  331.  
  332.                                           6
  333.  
  334.           perform an indexed search:
  335.  
  336.               DTSEARCH SCRIPT
  337.               SET REQUEST = apple and pear +
  338.                   and banana 
  339.               SET INDEXES = Index1 + Index2 + Index3
  340.               SET SORT = HITS
  341.               SET RESULTS = c:\dtsearch\search1.dat
  342.               SEARCH
  343.  
  344.               SET REQUEST tells dtSearch what you want to search for.  Note
  345.           that since the request was too long to fit on one line the first
  346.           line ends in a + to indicate that the request continues on the
  347.           next line.
  348.  
  349.               SET INDEXES tells dtSearch which indexes you want to search. 
  350.           If you want to search more than one index, be sure to use a + to
  351.           separate the names of the indexes you want to search.
  352.  
  353.               Use SET SORT to specify how the search results will be
  354.           sorted.  Options are:
  355.  
  356.               HITS    Sort by hits.
  357.               NAME    Sort by name.
  358.               DATE    Sort by date.
  359.               NONE    Unsorted.
  360.  
  361.               You can use ASCENDING or DESCENDING after the type of search
  362.           to specify an ascending or descending sort.  For example:
  363.  
  364.               SET SORT = NAME DESCENDING
  365.  
  366.           This would specify a sort in reverse alphabetical order.  By
  367.           default, name sorts are ascending and hits and date sorts are
  368.           descending.
  369.  
  370.               b.  Search Results
  371.  
  372.               After your search, you will want to be able to see the
  373.           results.  To store the results of your search in a dtSearch
  374.           "Search Results" file, use SET RESULTS to tell dtSearch the name
  375.           of the file to create, like this:
  376.  
  377.               SET RESULTS = c:\mysearch.dat
  378.  
  379.           This tells dtSearch to write the results of the search to
  380.           c:\mysearch.dat.  After your search, you can choose View File in
  381.           the File menu to view c:\mysearch.dat.  Your search results will
  382.           appear in the same way as other search results in dtSearch.
  383.  
  384.  
  385.  
  386.                                           7
  387.  
  388.               c.  Listing Files
  389.  
  390.               A second way to view your search results is to tell dtSearch
  391.           to create a listing file, which is simply a list of the retrieved
  392.           documents in Ascii text format.  If you view this file in
  393.           dtSearch, it will look like a list of names and will not act like
  394.           a search results window.  Listing files are useful if you want to
  395.           use another program to process the results of your search.  To
  396.           create a listing file, add a > and the name of the file to create
  397.           after the SEARCH command, like this:
  398.  
  399.               SEARCH > listing.txt
  400.  
  401.               To append your search results to an existing file, use >>
  402.           instead of >, like this:
  403.  
  404.               SEARCH >> listing.txt
  405.  
  406.               The listing file will contain a header with your search
  407.           request, the date of the search, and the number of files
  408.           retrieved.  To suppress this header, add SET HEADER = NO to your
  409.           script before the SEARCH command.
  410.  
  411.               Ordinarily, a listing file will contain only the names of the
  412.           retrieved files.  If you want the number of hits in each file to
  413.           be included in the file, add COUNT after the SEARCH command, like
  414.           this:
  415.  
  416.               SEARCH COUNT > listing.txt
  417.  
  418.               d.  Search Reports
  419.  
  420.               The REPORT command will create a search report based on
  421.           search results.  Example:
  422.  
  423.               REPORT results.dat report.dat 30
  424.  
  425.               This would create a search report in report.dat based on the
  426.           search results in results.dat.  The report would contain 30 words
  427.           of context surrounding each hit retrieved.
  428.  
  429.           5.  Listing commands
  430.           ----------------------------------------------------------------
  431.  
  432.               The LIST command will list words in an index, files in an
  433.           index, information about an index, or the text of a file.
  434.  
  435.               By default, the output of a LIST command will go into your
  436.           LOG file.  To redirect it to another file, use the same > and >>
  437.           symbols used in the SEARCH command, like this:
  438.  
  439.               LIST WORDS > words.lst
  440.  
  441.  
  442.  
  443.                                           8
  444.  
  445.               a.  LIST WORDS
  446.  
  447.               LIST WORDS will create a list of all of the words in the
  448.           currently selected index.  Example:
  449.  
  450.               SET INDEXNAME = MyIndex
  451.               LIST WORDS > words.lst
  452.  
  453.               LIST WORDS COUNT will list, next to each word, the number of
  454.           times it occurs in the index.
  455.  
  456.               To selectively list words in an index, use a filter, like
  457.           this:
  458.  
  459.               LIST WORDS ="APPL*" > words.lst
  460.  
  461.           This will list all words that match APPL*.  The filter can
  462.           contain wildcards like * and ?, the phonic search character #,
  463.           the stemming character ~, and the fuzzy search character %.  For
  464.           example,
  465.  
  466.               LIST WORDS ="AP%%PLICATION" 
  467.               LIST WORDS ="#APPLICATION"
  468.  
  469.               The first command would list all words that match a fuzzy
  470.           search for APPLICATION.  The second command would list all words
  471.           that sound like APPLICATION.
  472.  
  473.               b.  LIST FILES
  474.  
  475.               LIST FILES works exactly like LIST WORDS except that it lists
  476.           filenames instead of words.  The > and >> symbols work the same
  477.           way, and you can use the same types of filters.  For example,
  478.  
  479.               SET INDEXNAME = MyIndex
  480.               LIST FILES ="SMITH*.DOC" > smith.lst
  481.  
  482.           This would list all files in MyIndex whose name matches
  483.           SMITH*.DOC.
  484.  
  485.               c.  LIST INFO
  486.  
  487.               LIST INFO lists the information about an index that appears
  488.           in the Index Information dialog box.  This includes the date the
  489.           indexes was created and last modified, the number of documents in
  490.           the index, the size of the index, etc.  Example:
  491.  
  492.               SET INDEXNAME = MyIndex
  493.               LIST INFO
  494.  
  495.  
  496.  
  497.                                           9
  498.  
  499.               d.  LIST TEXT
  500.  
  501.               LIST TEXT provides an easy way to extract the text from a
  502.           file that is in a format that dtSearch recognizes.  Example:
  503.  
  504.               LIST TEXT smith.doc > smith.txt
  505.  
  506.               If smith.doc is a WordPerfect file, smith.txt would contain
  507.           the text of that file as it would appear in dtSearch.  Another
  508.           example:
  509.  
  510.               SET INDEXES = MyIndex
  511.               SET REQUEST = apple w/5 pear
  512.               SET RESULTS = results.dat
  513.               SEARCH
  514.               REPORT results.dat report.dat 30
  515.               LIST TEXT report.dat > report.txt
  516.  
  517.           This script would search MyIndex for "apple w/5 pear", write the
  518.           results to results.dat, prepare a search report based on
  519.           results.dat, and then extract the text of the search report to
  520.           report.txt.
  521.  
  522.           6.  Other Commands
  523.           ----------------------------------------------------------------
  524.  
  525.           QUIT terminates execution of a script and also causes the program
  526.           to exit. dtSearch for DOS will automatically exit after running a
  527.           script, but dtSearch for Windows will not exit after running a
  528.           script unless the script ends with a QUIT command.  This makes it
  529.           possible for another Windows program to start dtSearch for
  530.           Windows and pass it several scripts to execute using the DDE
  531.           interface.  If you want dtSearch for Windows to exit after it is
  532.           done running a script, just add QUIT as the last line of the
  533.           batch script.
  534.  
  535.           The WINDOW commands control the appearance of the dtSearch main
  536.           window.
  537.  
  538.             WINDOW MIN reduces it to an icon.  
  539.             WINDOW MAX maximizes it to fill the screen.
  540.             WINDOW NORMAL displays the window at its default size.
  541.  
  542.           OPTION allows you to change a dtSearch setup option.  What
  543.           follows the OPTION line is treated as if it were a line in the
  544.           dtSearch OPTIONS.DAT file.  For example, OPTIONS.DAT contains the
  545.           line
  546.  
  547.               SearchLimit = 99
  548.  
  549.  
  550.  
  551.                                           10
  552.  
  553.           Which specifies the maximum number of files to retrieve in a
  554.           search.  To change the search limit, use the command
  555.  
  556.               OPTION SearchLimit = 999
  557.  
  558.           7.  Environment variables
  559.           ----------------------------------------------------------------
  560.  
  561.           If you include an environment variable in a batch script command,
  562.           dtSearch will substitute it with the value of the variable in the
  563.           current environment.  For example, if the variable %DTSDIR% has
  564.           the value "C:\DTSEARCH", then a script could include the line
  565.  
  566.               SEARCH > %DTSDIR%\RESULTS.LST
  567.  
  568.           dtSearch would interpret this to mean
  569.  
  570.               SEARCH > C:\DTSEARCH\RESULTS.LST
  571.  
  572.           8.  DDE API
  573.           ----------------------------------------------------------------
  574.  
  575.               dtSearch for Windows responds to a DDE-based API so you can
  576.           use dtSearch for Windows to perform searching or indexing tasks
  577.           in another program.  The DDE API is based on batch scripts.
  578.  
  579.               To enable the dtSearch DDE interface, run DTSWIN /DDE.  A
  580.           window labelled "DDE Server" will appear in dtSearch for Windows. 
  581.           To execute a script, connect to the service "dtSearch" with the
  582.           topic "script," then send a DDE Execute message with the name of
  583.           the script to execute.  dtSearch will execute the script and
  584.           record the results in a file with the same name as the script
  585.           ending with .LOG.
  586.  
  587.           9.  Reference
  588.           ----------------------------------------------------------------
  589.  
  590.           Words in capital letters are keywords.  Items in braces -- { } --
  591.           are optional.  The {> filename} parameter means that output from
  592.           the command can be redirected to a file.  Use >> instead of > if
  593.           you want the output to be appended to an existing file.
  594.  
  595.           ADD
  596.  
  597.               Begin adding documents to an index.  Use SET INDEXNAME or SET
  598.               INDEXPATH to specify the index, SET FILTER to specify
  599.               filename filters, and SET DOCPATH to specify directories.
  600.  
  601.           COMPRESS
  602.  
  603.               Compress an index.  Use SET INDEXNAME or SET INDEXPATH to
  604.               specify the index to compress.
  605.  
  606.  
  607.  
  608.                                           11
  609.  
  610.           CREATE {ARCHIVE} {CASE} {ACCENT}
  611.  
  612.               Create a new index.  Use SET INDEXNAME to specify the name of
  613.               the index and SET INDEXPATH to specify the directory. 
  614.               Options:
  615.  
  616.                   ARCHIVE Create an archive index that stores the text of
  617.                           indexed files.
  618.  
  619.                   CASE    Create a case-sensitive index.
  620.  
  621.                   ACCENT  Create an accent-sensitive index.
  622.  
  623.           LIST FILES {="filter"} {> filename}
  624.  
  625.               List files in an index.  Use SET INDEXNAME or SET INDEXPATH
  626.               to specify the index.  The optional filter, if present, will
  627.               select the files to be listed.
  628.  
  629.           LIST INFO {> filename}
  630.  
  631.               List information about an index (the information that is
  632.               displayed in the Index Information dialog box).  Use SET
  633.               INDEXNAME or SET INDEXPATH to specify the index.
  634.  
  635.           LIST WORDS {COUNT} {="filter"} {> filename}
  636.  
  637.               List words in an index.  Use SET INDEXNAME or SET INDEXPATH
  638.               to specify the index.  The optional filter, if present, will
  639.               select the words to be listed.  The filter can include
  640.               wildcards (* and ?), fuzzy (%) and phonic searching (#), and
  641.               stemming(~).
  642.  
  643.           LIST TEXT filename1 {> filename2}
  644.  
  645.               List the text of filename1, writing the output to filename2.
  646.  
  647.           OPTION option-text
  648.  
  649.               Changes a user option in the dtSearch OPTIONS.DAT file.  The
  650.               text following the word OPTION is treated as if it were a
  651.               line in OPTIONS.DAT.
  652.  
  653.           QUIT
  654.  
  655.               Exit dtSearch.
  656.  
  657.           REPORT ResultsName ReportName WordsOfContext
  658.  
  659.               Create a search report in ReportName based on search results
  660.               in ResultsName.
  661.  
  662.  
  663.  
  664.                                           12
  665.  
  666.           SEARCH {COUNT} {> filename}
  667.  
  668.               Perform a search.  Use SET INDEXES to specify the indexes to
  669.               search, SET REQUEST to specify the search request, SET
  670.               RESULTS to specify the name of the search results file, and
  671.               SET SORT to specify how the results should be sorted.
  672.  
  673.               SEARCH > filename will list the full name of each retrieved
  674.               document.  SEARCH COUNT > filename will list the number of
  675.               hits and the name of each retrieved document.
  676.  
  677.           SET EXCLUDE = {filename filters}
  678.  
  679.               Specify files not to be indexed.  More than one filter can be
  680.               included (use spaces to separate them).
  681.  
  682.           SET DOCPATH = path1 + path2 + ...
  683.  
  684.               Specify the directories to be indexed.  If the list extends
  685.               over more than one line, each line (except the last) should
  686.               end in a + sign so dtSearch knows that the list continues on
  687.               the next line.  
  688.  
  689.               &SUBS after a directory name means index the directory and
  690.               any subdirectories.
  691.  
  692.           SET FILTER = {filename filters}
  693.  
  694.               Specify files to be indexed.  More than one filter can be
  695.               included (use spaces to separate them).
  696.  
  697.           SET HEADER = {YES|NO}
  698.  
  699.               A search listing will contain a header with your search
  700.               request, the date of the search, and the number of files
  701.               retrieved.  To suppress this header, use SET HEADER = NO.
  702.  
  703.           SET INDEXES = list of indexes
  704.  
  705.               Select indexes to be searched.  List the names of each index
  706.               to search with + signs between them if you want to search
  707.               more than one index.
  708.  
  709.           SET INDEXNAME = name
  710.  
  711.               Specify the name of an index to update or create.
  712.  
  713.           SET INDEXPATH =
  714.  
  715.               Specify the directory of an index to update or create.
  716.  
  717.  
  718.  
  719.                                           13
  720.  
  721.           SET LIB = filename
  722.  
  723.               Select a new index library.  If the library does not exist,
  724.               it will be created.
  725.  
  726.           SET REQUEST = search request
  727.  
  728.               Enter a search request for a SEARCH command.
  729.  
  730.           SET RESULTS = filename
  731.  
  732.               Specify the name of the search results file to create in a
  733.               search.  If you view this file in dtSearch using View File in
  734.               the File menu, it will act exactly like the search results
  735.               files created in an interactive search.
  736.  
  737.           SET SORT = {HITS|DATE|NAME|NONE} {ASCENDING|DESCENDING}
  738.  
  739.               Specify how you want the results of a search to be sorted.
  740.  
  741.           UPDATEFILES
  742.  
  743.               Check each file in an index and reindex it if it has changed
  744.               since it was last indexed.  If the file has been deleted,
  745.               remove it from the index.
  746.  
  747.           WINDOW {MAX|MIN|NORMAL}
  748.  
  749.               In dtSearch for Windows, change the appearance of the
  750.               dtSearch main window.