Relational Operators

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.

 

Relational operators provide a means of selecting documents with values of a value-type property restricted to a specified interval. The following table lists the standard relational operators.

Operator Description
< less than
<= less than or equal to
= equal to
>= greater than or equal to
> greater than
!= not equal to

 

The following table gives some simple relational queries.

Long Form Short Form
{prop name = shoesize} >= 6 {/prop} @shoesize >= 6
{prop name = createdate} >= -1d6 {/prop} @CreateDate > -1d
{prop name = DocAuthor} = "David" @DocAuthor = "David"