# ISearchQuery

> This search query interface is used when handling search query objects. These can be either assets saved in the user project or saved in the user preferences.

## Definition

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

```csharp
public interface ISearchQuery
```

## Properties

| Property                                                                                                | Description                                                                                   |
| ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [creationTime](/engine/6000.7/script-reference/unityeditor/search/isearchquery/creationtime.md)         | Indicates the binary long time of when the search query was created.                          |
| [details](/engine/6000.7/script-reference/unityeditor/search/isearchquery/details.md)                   | Search query description.                                                                     |
| [displayName](/engine/6000.7/script-reference/unityeditor/search/isearchquery/displayname.md)           | Search query display name used in the UI.                                                     |
| [filePath](/engine/6000.7/script-reference/unityeditor/search/isearchquery/filepath.md)                 | Indicates where the search query is saved on disk.                                            |
| [guid](/engine/6000.7/script-reference/unityeditor/search/isearchquery/guid.md)                         | Unique GUID of the search query.                                                              |
| [isSearchTemplate](/engine/6000.7/script-reference/unityeditor/search/isearchquery/issearchtemplate.md) | Indicates if the search query is displayed as a search template in the search view home page. |
| [itemCount](/engine/6000.7/script-reference/unityeditor/search/isearchquery/itemcount.md)               | Provides a preview of how many results this query might yield if executed.                    |
| [lastUsedTime](/engine/6000.7/script-reference/unityeditor/search/isearchquery/lastusedtime.md)         | Indicates the last time the query was executed.                                               |
| [searchText](/engine/6000.7/script-reference/unityeditor/search/isearchquery/searchtext.md)             | Search query text.                                                                            |
| [thumbnail](/engine/6000.7/script-reference/unityeditor/search/isearchquery/thumbnail.md)               | Search query icon thumbnail set by the user if any.                                           |

## Methods

| Method                                                                                                  | Description                                                             |
| ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [GetName](/engine/6000.7/script-reference/unityeditor/search/isearchquery/getname.md)                   | Returns the formatted name of the query depending on its source.        |
| [GetProviderIds](/engine/6000.7/script-reference/unityeditor/search/isearchquery/getproviderids.md)     | Returns the list of provider ids that search query is executed with.    |
| [GetProviderTypes](/engine/6000.7/script-reference/unityeditor/search/isearchquery/getprovidertypes.md) | Returns the list of aggregated type ids the search query executes with. |
| [GetSearchTable](/engine/6000.7/script-reference/unityeditor/search/isearchquery/getsearchtable.md)     | Returns the query search table configuration if any.                    |
| [GetViewState](/engine/6000.7/script-reference/unityeditor/search/isearchquery/getviewstate.md)         | Returns the search query view state.                                    |
