Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# ISearchRequest.SetQuery Method (IFilterClause)

Set the query associated with this request.

void SetQuery(
IFilterClause filterClause
);

#### Parameters

filterClause
  Filter Clause created from `ISearchFactory`

#### Remarks

Some services may not be able to handle a complex filter clause, others will throw an exception if the clause is too complex. Note: this overrides any query previously set by a call to any version of `SetQuery()`.

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | if used in conjunction with particular attributes in subinterfaces

#### See Also

ISearchRequest Interface | Plumtree.Remote.PRC.Search Namespace | ISearchRequest.SetQuery Overload List