Export (0) Print
Expand All
Expand Minimize

2.2.3.87 LessThan

The LessThan element is an optional child element of the And element in Search command requests that contains elements that specify a property and a value that are compared for a "less than" condition during a search.

Elements referenced in this section are defined in the Search namespace, except where otherwise indicated by the presence of a namespace prefix (as defined in section 2.2.1).

Command request/response

Parent elements

Child elements

Data type

Number allowed

Search command request (section 2.2.2.15)

And (section 2.2.3.10)

email:DateReceived (section 2.2.3.51)

Value (section 2.2.3.181)

container ([MS-ASDTYPE] section 2.2)

0...1 (optional)

The result of including more than one LessThan element in a Search command request is undefined. The server MAY return a protocol status error in response to such a command request.

The LessThan element is supported only in mailbox searches. It is not supported for document library searches. The comparison is made between the value of the Value element and the date that a mailbox item was received. The email:DateReceived element MUST be present before the Value element.

Typically, this element is used to filter results by the date on which they were received so that the date received is less than the specified value.

If the LessThan element is included as a child element of any element other than the And element (section 2.2.3.10), the server responds with a Status element (section 2.2.3.162.12) value of 8 (SearchTooComplex).

Protocol Versions

The following table specifies the protocol versions that support this element. The client indicates the protocol version being used by setting either the MS-ASProtocolVersion header, as specified in [MS-ASHTTP] section 2.2.1.1.2.4, or the Protocol version field, as specified in [MS-ASHTTP] section 2.2.1.1.1.1, in the request.

Protocol version

Element support

2.5

12.0

X

12.1

X

14.0

X

14.1

X

Show:
© 2014 Microsoft