3. Content Rule
(( search-condition | search-attr ) + )
<search-condtion> is used specify a logical conditional search expression to be evaluated while performing a search. It can be enclosed inside a <query> or a <search-condtion>.
A <search-condtion> element can have combination of <search-attr> and <search-condtion>.
A <search-condtion> element along with its children can be read as a prefix expression, where the <search-condtion> is the operator and its children are the operands in the expression.
Possible names for the search condition are:
With a combination <search-condtion> and <search-attr> elements, more granular search filters can specified while performing a query.
<!-- search the whole application for a User object whose the Surname of Jones -->
<!-- and does not belong to the department(OU) IAM -->
<search-condition name="and">
<search-attr attr-name="OU">
<value type="string">IAM</value>
</search-attr>
<search-condition name="not">
<search-attr attr-name="Surname">
<value type="string">Jones</value>
</search-attr>
</search-condition>
</search-condition>
- search-condition
- Query search condition filter.
- search-attr
- Query search attribute value filter.
Attribute Value(s) Default Value name and | or | not
Name of the condition.and search-criteria-id CDATA
Holds the id of a search criteria.
When a non-empty result is received for a particular search-criteria, this value will be appended as an attribute to the instance document(s)
This value will only be used when the attribute return-on-first-match is set to true on <query> element.
If this attribute is absent, the index position of the <search-condtion> under <query> will be appended to the instance document.#IMPLIED
(( search-condition | search-attr ) + )
- query
- Query command.
- query-ex
- Query command with result count limit.
- search-condition
- Query search condition filter.
Top Elements || All Elements || Tree