Property-Name Syntax

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.
 

The long form of Dialect 2 expresses property names using the {prop} tag. The general syntax for a property name is the following.

{prop name = <property_name>} [{/prop}]

For completeness, the optional closing tag {/prop} is supported. This tag can be used for clarity when specifying relational operators with properties. Property names are case-insensitive, and if property_name consists of more than one word, the words must be quoted. The short form uses the "@" character as a prefix to indicate the property name.

The following table summarizes property names and their long and short forms.

Long FormShort Form
{prop name = property_name} [{/prop}]@property_name

 

The Contents property, @Contents in short form, is a special case. This property refers to the contents of the text-type property of a document. When a query doesn't specify a property name, @Contents is assumed.

Properties available for all documents include the following.

Property NameDescription
AllMatches words, phrases, and any property.
ContentsWords and phrases in the document.
FilenameName of the document.
SizeDocument size.
WriteLast time the document was modified.

 

A query can also use Microsoft ActiveX property values. Documents created by most ActiveX-aware applications can be queried for the following properties.

Property Name Description
DocTitleTitle of the document.
DocSubjectSubject of the document.
DocAuthorAuthor of the document.
DocKeywordsKeywords for the document.
DocCommentsComments about the document.

 

There is also a list of additional standard Indexing Service properties that are available in queries. For the list, see Default Property Names for a Web Catalog.

The following table illustrates several property names in both long and short form.

Long FormShort Form
{prop name = filename}@filename
{prop name = "shoe size"@"shoe size"
{prop name = contents}@contents
{prop name = all}@all

 

 

 

Show: