Making Complex Queries

In the Making Simple Queries test drive, you searched for document contents and properties through relatively basic features on the sample query forms. But the following test drive pushes Index Server a little farther, showing more powerful query-form techniques and features.

This section contains:

You can easily post a query for documents that have been recently modified. The following test drive shows you how to find documents based on the date when they were last modified.

To search for documents modified after a certain date
  1. From the Taskbar, click Start, point to Programs, point to Windows NT 4.0 Option Pack, point to Microsoft Index Server, and click Index Server Sample Query Form.
  2. Your browser displays the Sample ASP Search Form.

  3. In the left frame of the Sample ASP Search Form, click Advanced ASP Sample.
  4. The Advanced ASP Sample form appears.

  5. In the Modified list box, click the last option, since GMT (yy/mm/dd).
  6. In the box to the right of the drop-down list, type 97/8/12.
  7. Leave the Enter your query below box blank.
  8. This tells Index Server to check only the modification time and date for the query.

  9. Click the Execute button to view the results.
  10. Index Server returns all documents modified since August 12, 1997.

But suppose you have just a simple form without a handy drop-down list. You can still make the same query.

 

To search against a modification date
  1. In the left frame of the Advanced ASP Sample form, click HTM/IDQ Sample.
  2. The Sample HTM/IDQ/HTX Search Form appears.

  3. In the Enter your query below box, type @write> 97/8/12 and click the Go button.
  4. The results should be the same as in the previous procedure.


© 1997 by Microsoft Corporation. All rights reserved.