# SearchExpressionType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/model/scripting-3

Supertype: AbstractActionExpressionType
Queries the model for objects of a given type, optionally fulfilling given condition.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
type | property QName | [1,1] | Type whose instances are searched for.
variable | property string | [0,1] | Variable to hold found instances.
query | property QueryType | [0,1] | Query to apply when searching for instances.
searchFilter | property SearchFilterType | [0,1] | Filter to apply when searching for instances.
options | container SelectorQualifiedGetOptionsType | [0,1] | Options to use when executing the search.
parameter | property ActionParameterValueType | [0,-1] | Action parameters.
scriptingExpression | property ScriptingExpressionType | [0,1] | Expression to evaluate for each object found.
aggregateOutput | property boolean | [0,1] | Whether to aggregate and pass forward the output of expression evaluations that are done for each object found.

- ### Items

  - #### type

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Display order:

    Type whose instances are searched for.

  - #### variable

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Variable to hold found instances. Not yet supported.

  - #### query

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Query to apply when searching for instances. (Alternative to searchFilter. This is tried as the first one.)

  - #### searchFilter

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Filter to apply when searching for instances. (Alternative to query. This is tried as second one.)

  - #### options

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Options to use when executing the search.

  - #### parameter

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Display order:

    Action parameters.

  - #### scriptingExpression

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Expression to evaluate for each object found.

  - #### aggregateOutput

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Whether to aggregate and pass forward the output of expression evaluations that are done for each object found. (Meaningful only if scriptingExpression is specified.) Default is true for compatibility reasons. Set to false to optimize memory consumption.