Compartir a través de


Relational Queries with Vector Properties

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.

 

A vector property has more than one element, each with a value. When used with vector properties, the relational operators are applied to corresponding vector elements in turn, left to right. A complete test passes if all the individual element tests pass.

Consider the two vector properties, A and B, with the following elements: A (a1; a2; a3) and B (b1; b2; b3). With these elements, A > B if, and only if, a1 > b1 AND a2 > b2 AND a3 > b3.

If one vector has more elements than the other, the test is only applied against the matching elements and the extra elements are ignored.

A series of relational comparisons connected by other operators apply to the most recently specified property. The following two queries are equivalent.

@shoesize > 6 AND < 10
@shoesize > 6 AND @shoesize < 10

To perform a relational query with the long-form property tag, a {/prop} can be (optionally) used to complete the clause and to improve readability. The following query is a valid property restriction.

{prop name = shoesize} > 6 & < 10{/prop}

The {/prop} construct is used to separate property clauses but it can usually be omitted, because a new property specification (either long or short) implies closure of the previous clause. It is also assumed that there is a "super" closure at the end of the query expression to close all property tags.