Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining LessThan
Collapse the table of content
Expand the table of content 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

And (section

email:DateReceived (section

Value (section

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, the server responds with a Status element (section 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, or the Protocol version field, as specified in [MS-ASHTTP] section, in the request.

Protocol version

Element support










© 2015 Microsoft