Internet Data Query files (files with an .idq extension) for Index Server (together with the form parameters) specify the query that Microsoft Index Server will run. The .idq file is divided into two sections:
The names section is optional, and need not be supplied for standard queries.
This part of the documentation contains the following topics:
Note All paths to .idq files must be the full path name from a virtual root, not a relative path or a physical path. In other words, all paths must start with a forward slash and cannot contain . or .. components. See the following examples:
Valid Paths
/scripts/myquery.idq
/iissamples/issamples/query.idq
Invalid Paths
c:\iissrv\scripts\myquery.idq
scripts/query.idq
/samples/../scripts/example.idq
You must put the .idq files into a virtual directory with Execute or Script permission. You cannot put .idq files into a virtual directory pointing to a remote Universal Naming Convention (UNC) share.
Note Index Server does not support physical paths longer than the Windows NT shell limit (260 characters).