#
# IDQ file used to generate a list of currently cached office properties
#

[Names]
#
# Query Metadata propset
MetaPropertyGuid(DBTYPE_GUID) = 624c9360-93d0-11cf-a787-00004c752752 5
MetaPropertyDispId(DBTYPE_I4) = 624c9360-93d0-11cf-a787-00004c752752 6
MetaPropertyName(DBTYPE_WSTR) = 624c9360-93d0-11cf-a787-00004c752752 7
StorageType(DBTYPE_UI4)       = b725f130-47ef-101a-a5f1-02608c9eebac 4

# This is the query file for the query.htm query form.
#

[Query]

# The CiCatalog variable must point to where the catalog (index) files
# are stored on your system.  You will probably have to change this
# value.

CiCatalog=e:\

# These are the columns that are referenced in the .htx files
# when formatting output for each hit.

CiColumns=path, size, MetaPropertyGuid, MetaPropertyDispId, MetaPropertyName, StorageType

# The CiRestriction is the query.  Here, it's just pass in from the
# form in the .htm file.

CiRestriction=@MetaPropertyGuid = F29F85E0-4FF9-1068-AB91-08002B27B3D9 & @size > 0

CiMaxRecordsInResultSet=50

CiMaxRecordsPerPage=50

# CiScope is the directory (virtual or real) under which results are
# returned.  If a file matches the query but is not in a directory beneath
# CiScope, it is not returned in the result set.
# A scope of \ means all hits matching the query are returned.

CiScope=PROPERTIES

# This is the .htx file to use for formatting the results of the query.

CiTemplate=/scripts/samples/search/offprop.htx

# This is the list of property names to use in sorting the results.
# Append [a] or [d] to the property name to specify ascending or
# descending.  Separate keys in multi-key sorts with commas.
# For example, to sort on file write date ascending, then file size
# descending, use CiSort=write[a],filesize[d]

CiSort=MetaPropertyDispid[a],MetaPropertyName[a]