# QueryResult

**Kind**: interface | **Module**: [Search](https://docs.interop.io/desktop/reference/javascript/search/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/search/queryresult/index.html

Describes an individual search result received by search clients.

## Properties

- **`action`** (`MainAction`, optional)
  A main action that can be used to invoke an already registered Interop method when the user clicks on the search result displayed in a UI.
  If you need to define multiple actions when handling search results, you can use the `secondaryActions` property instead.
- **`description`** (`string`, optional)
  Description for the search result that can be used in a UI.
- **`displayName`** (`string`, optional)
  Display name for the search result that can be used in a UI.
- **`iconURL`** (`string`, optional)
  URL pointing to an icon for the search result that can be used in a UI.
- **`id`** (`string`, optional)
  ID for the search result that can be used by the search client when handling the result.
- **`metadata`** (`any`, optional)
  Metadata for the search result that can be used by the search client when handling the result.
- **`secondaryActions`** (`SecondaryAction[]`, optional)
  Secondary actions can be used to invoke different already registered Interop methods if, for example, you want to present the user
  with a choice of options related to the search result. The `secondaryActions` property can be used independently,
  without defining a `MainAction` in the `action` property.
- **`type`** (`SearchType`, required)
  The predefined search type of the result.

## Related types

- [MainAction](https://docs.interop.io/desktop/reference/javascript/search/mainaction/index.md)
- [SearchType](https://docs.interop.io/desktop/reference/javascript/search/searchtype/index.md)
- [SecondaryAction](https://docs.interop.io/desktop/reference/javascript/search/secondaryaction/index.md)
