# ParsedQuery<TData, TPayload>

> Provides methods to define an operation that can be used to filter a data set.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Search](/engine/6000.3/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
public class ParsedQuery<TData, TPayload> where TPayload : class
```

## Remarks

\\\<TData\\>: The filtered data type, \\\<TPayload\\>: The payload type.

## Properties

| Property                                                                                              | Description                                                                                                           |
| ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| [errors](/engine/6000.3/script-reference/unityeditor/search/parsedquery2/errors.md)                   | A list of QueryErrors.                                                                                                |
| [evaluationGraph](/engine/6000.3/script-reference/unityeditor/search/parsedquery2/evaluationgraph.md) | Query evaluation graph used to evaluate the query.                                                                    |
| [queryGraph](/engine/6000.3/script-reference/unityeditor/search/parsedquery2/querygraph.md)           | Query graph. This graph can be used to walk all the node of the query if you need to do a special type of evaluation. |
| [text](/engine/6000.3/script-reference/unityeditor/search/parsedquery2/text.md)                       | The text that generated the query.                                                                                    |
| [tokens](/engine/6000.3/script-reference/unityeditor/search/parsedquery2/tokens.md)                   | The list of tokens found in the query.                                                                                |
| [valid](/engine/6000.3/script-reference/unityeditor/search/parsedquery2/valid.md)                     | Indicates if the query is valid or not.                                                                               |

## Methods

| Method                                                                                                    | Description                                                              |
| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [Apply](/engine/6000.3/script-reference/unityeditor/search/parsedquery2/apply.md)                         | Applies the filtering on a payload.                                      |
| [GetNodeAtPosition](/engine/6000.3/script-reference/unityeditor/search/parsedquery2/getnodeatposition.md) | Get the query node located at the specified index position in the query. |
| [Optimize](/engine/6000.3/script-reference/unityeditor/search/parsedquery2/optimize.md)                   | Optimizes the query by optimizing the underlying filtering graph.        |
