Tutorials » Basic Search Query Rules

Basic Rules For Querying A Search Catalog
To query the Search catalog you need to use the Query object that exists in the MSSearch ActiveX component.

But first you need to decide how you want to search and what to search for. The query language is very powerful and allows standard keyword searches and additional column searches.

Search Types
Searches can be combined in the following ways:

Searchable Columns
The Query object is flexible enough to allow you to not only search the full text of a document but also to search specific columns within the catalog. The catalogs contain many standard columns that can be searched. When Search adds a document to its catalog, it includes the full text of the document and any properties specified in the catalog schema, such as the document’s title, file size and author. This is particularly useful for Microsoft Office documents.

When Search finds a <META> tag within a web document it automatically creates a new column in the catalog to reflect that name. This is added to the catalog as an indexed column and can be queried.

You can define your own columns by editing the file 'Data\Search\Config\DEFINECOLUMNS.TXT'. This can be found within the installation directory of Microsoft Site Server.

To search a specific text column you need to use the following syntax:

       @column_name query_term

For example to find all documents that contain the word 'money' the following query is used:

       @DocTitle money

For a full list of standard supported columns, check out the Column List.

Basic Rules for Querying Text Columns
Many of the catalog columns contain text values. The following rules should be followed when querying text columns:

This covers the basic rules of how to build up a query to search a catalog. The next step involves setting properties of the Query object to specify how the search should operate.

 
  1 2 3 4 5 6 7 8