Sample Query

Note

Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.

 

Suppose, when putting together the information in the previous sections, that you want to search for the author of a document greater than 100 bytes in size, and the author’s name is George. To do this, send the following query:

@DocAuthor = George AND @size < 100

You want to aim your query at this document:

/InetPub/Docs/Ideas.doc

To choose default formatting, refer to a virtual directory with Execute or Script permission:

/Path/null.htw?

Before the query string can be passed to Webhits, it must be escaped, resulting in:

@DocAuthor%20%3D%20George%20AND%20@size%20%3E%20100

Now, to hit-highlight the document, issue the following command:

http://MyServer/Path/Null.htw?CiWebhitsFile=\vpath\Docs\Ideas.doc &amp;
CiRestriction=@DocAuthor%20%3D%20George%20AND%20@size%20%3E%20100

Note

Neither @size nor @DocAuthor are custom properties, so you do not need to specify an .idq file in this case.