---
schema_version: "1"
id: 3bd378639f124bd418b5af1d9d76da627027cae4b4abaa8315324ac1411534d2
title: ConnectApi.SearchObject
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_search_objec.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_search_objec.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 62b1ec153a27679c08f8b7a73d5d223d89d3f5140bd8e7f540fed1bb96d56527
description: Record results for the keyword search.
---
# ConnectApi.SearchObject

Record results for the keyword search.

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| displayFields | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<String> | Fields to display from the response. | 63.0 |
| objectApiName | String | Object API name. | 63.0 |
| orderBy | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.​SearchApplied​OrderBy](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_applied_order_b.htm "The applied order for object search.")\> | Applied order for object search. | 63.0 |
| pageInfo | [ConnectApi.​PageInfo](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_page_inf.htm "Page position information for the object search.") | Page position information for the object search. | 63.0-64.0 |
| searchResults | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.​SearchResult](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_search_resul.htm "Results from searching an object using keywords.")\> | Search results from the query. | 63.0 |
| spellCorrectionInfo | [ConnectApi.​SpellCorrection​Info](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_spell_correction_inf.htm "Spell correction information for object search.") | Spell correction information for the object search. | 63.0 |
| status | [ConnectApi.​SearchStatus](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_statu.htm "Provides status on the object search.") | Provides status on the object search such as error messages and warnings. | 63.0 |

#### See Also

- [ConnectApi.SearchResultGroups](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_search_result.htm "Results of searching objects using keywords.")
- [ConnectApi.SearchAnswer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_search_answe.htm "Results of searching objects using a natural language query.")
- [ConnectApi.ScopedSearchResults](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_scoped_search_result.htm "Keyword search results for an object.")