--- title: "Search Data in Tables" url: https://docs.catalyst.zoho.com/en/sdk/ios/v2/cloud-scale/search/search-data-in-tables/ description: "Catalyst Search enables data searching in the indexed columns of the tables in the Data Store. It allows you to perform powerful searches through volumes of data with a single search query." last_updated: 2025-11-19T15:07:41Z service: Cloud Scale type: general related_links: - name: "Data Store" url: /en/cloud-scale/help/data-store/introduction - name: "Search" url: /en/cloud-scale/help/search-integration/introduction - name: "Search - API" url: /en/api/code-reference/cloud-scale/search/execute-search-query/#ExecuteSearchQuery --- # Search [Catalyst Search](https://docs.catalyst.zoho.com/en/cloud-scale/help/search-integration/introduction) enables data searching in the indexed columns of the tables in the [Data Store](https://docs.catalyst.zoho.com/en/cloud-scale/help/data-store/introduction). It allows you to perform powerful searches through volumes of data with a single search query. ### Search Data in Tables The `search()` method is used for searching data in the tables in a specific pattern. Before you execute a search operation, you must construct the search pattern to pass to the `search()` method, as shown in the code syntax below: ```bash ZCatalystApp.shared.search( searchOptions : ZCatalystSearchOptions, completion : @escaping( Result< [ String : Any ], ZCatalystError > ) -> Void ) ``` **Parameters**: * `searchOptions`: The instance of the `ZCatalystSearchOptions` class to be passed to the `search()` method. * `completion`: If the call executes successfully, the completion block returns the data from the search results. Else, it returns an error. You can create the instance for `searchOptions` in the following way: ```bash ZCatalystSearchOptions(searchText: String, searchColumns : [ TableColumns ]) .add(searchColumns : TableColumns) .add(displayColumns : TableColumns) .add(sortColumn : String, in table : String) TableColumns( tableName : String ) TableColumns.add( column : String ) ``` A sample code snippet of a search execution is shown below: ```bash var searchColumns = ZCatalystSearchOptions.TableColumns( tableName : "EmployeeDetails" ) //Replace this with your table name searchColumns.add( column : "Age" ) //Replace this with your column name var searchOptions = ZCatalystSearchOptions( searchText : "25", searchColumns : [ searchColumns ] ) //Replace this with your search text var displayColumns = ZCatalystSearchOptions.TableColumns( tableName : "EmployeeDetails" ) //Replace this with your table name displayColumns.add( column : "Age" ) //Replace this with your column name searchOptions.add(displayColumns: displayColumns) ZCatalystApp.shared.search( searchOptions : searchOptions) { ( result ) in switch result{ case .success( let response ) : print("Response : \( response )") case .error( let error ) : print( "Error occurred >>> \( error )" ) } } ```