--- title: "Search DataStore" url: https://docs.catalyst.zoho.com/en/sdk/javascript/v1/cloudscale/datastore/search-datastore/ description: "This page describes the method to perform search operations in the DataStore component." last_updated: 2026-09-09T10:45:38Z service: CloudScale type: general related_links: - name: "Catalyst CloudScale" url: /en/cloud-scale/ - name: "DataStore Help" url: /en/cloud-scale/help/data-store/introduction/ - name: "Java SDK" url: /en/sdk/java/v1/cloud-scale/data-store/ - name: "Python SDK" url: /en/sdk/python/v1/cloud-scale/data-store/ - name: "REST APIs" url: /en/api/code-reference/cloud-scale/data-store/ repository: name: "Repository" url: https://github.com/catalystbyzoho/zcatalyst-sdk-js --- # Search DataStore [Search](https://docs.catalyst.zoho.com/en/cloud-scale/help/search-integration/introduction/) is a *CloudScale* component that enables data searching within the indexed columns of your [Catalyst Data Store](https://docs.catalyst.zoho.com/en/cloud-scale/help/data-store/introduction/) tables. The search process specifies the pattern to search for in the search indexed columns of the tables. You can search for data in multiple tables or just data in search indexed columns. > **Note:** Ensure you have installed the [required package](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/cloudscale/datastore/overview/#prerequisites) to use this SDK method. Using the `executeSearchQuery()` SDK method you can execute the required search query to search for a particular pattern of data. The `datastore` reference used in the code snippet is the [component instance](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/cloudscale/datastore/get-component-instance/). ### Create a JSON Configuration The following code snippet creates a JSON object that contains the attributes of the pattern to be searched for, in the indexed columns of the individual tables. ```javascript // Create a config object with the search term, table and indexed columns let config = { search: 'santh*', search_table_columns: { SampleTable: ['SearchIndexedColumn'], Users: ['SearchTest'] } }; ``` Using the JSON object created in the above section is passed as a parameter to the `executeSearchQuery()` SDK method which returns a promise. The promise returned will be resolved to a JSON object. ```javascript // Execute the search query by passing the configuration const searchResult = await datastore.executeSearchQuery(config); console.log(searchResult); ``` #### Example of Expected Response An example of the response that you will receive is shown below. ```javascript { AlienCity: [ { CREATORID: "2136000000006003", MODIFIEDTIME: "2021-08-13 13:49:19:475", CityName: "Dallas", CREATEDTIME: "2021-08-13 13:49:19:475", ROWID: "2136000000008508" } ] } ```