README.TXT

Demonstration of issuing Microsoft Index Server queries 


SUMMARY
=======

ADVQUERY is a more advanced sample query program than QSAMPLE.
It shows everything needed to execute a Microsft Index Server query.


MORE INFORMATION
================

usage: ADVQUERY query [/c:catalog] [/m:machine]
query a Microsoft Index Server query
/c:catalog name of the catalog, default is SYSTEM
/m:machine name of the machine, default is local machine
/s:scope root path, default is entire catalog
/d displays the DBCOMMANDTREE, default is off

The "query" paramater can be a word or phrase. Files that contain the
word or phrase are listed in the result. To include a space in a query,
enclose the query in quotes.

The "catalog" parameter is the name of the catalog to be queried. The
default is "SYSTEM", which is the default catalog installed with Windows
NT 5.0. Additional catalogs can be created with the Microsoft Index Server
MMC snapin.

The "machine" parameter is the name of the machine on which the query
will be executed. The default is ".", which is the local machine. Machine
names should not be preceeded with two backslashes.

The "scope" parameter is the file path under which files must exist
to be included in the results. The default is "\", which includes all
scopes in the catalog.

The "/d" parameter displays the DBCOMMANDTREE built to execute the query.

For each file that matches the query, the file's rank, size, and path
are printed.

The query results are sorted by rank (how well the file matches the query).

Examples:

advquery foo
Finds all files in the SYSTEM catalog on the local machine containing
the word "foo"

advquery "foo bar" "/s:c:\my directory"
Finds all files in the SYSTEM catalog on the local machine containing
the phrase "foo bar" that are in the specified directory or any
subdirectory.

advquery foo /m:SERVERNAME
Finds all files in the SYSTEM catalog on machine "servername" containing
the word foo