--- title: "データの検索" url: https://docs.catalyst.zoho.com/ja/sdk/nodejs/v2/cloud-scale/search/search-data/ description: "このページでは、NodeJSアプリケーションで複数のテーブルのデータを検索するメソッドについて、サンプルコードスニペットと共に説明します。" last_updated: 2026-03-30T08:10:30Z service: Cloud Scale type: general related_links: - name: "Search Data - API" url: /ja/api/code-reference/cloud-scale/search/execute-search-query/#ExecuteSearchQuery - name: "Search Integration" url: /ja/cloud-scale/help/search-integration/introduction --- # データの検索 [Catalyst Search](https://docs.catalyst.zoho.com/ja/cloud-scale/help/search-integration/introduction)を使用すると、Catalyst Data Storeからデータレコードを検索および取得できます。`executeSearchQuery()`メソッドを使用して、特定のデータパターンを検索するための検索クエリを実行できます。コードスニペットで使用されているsearchの参照は、[コンポーネントインスタンス](https://docs.catalyst.zoho.com/ja/sdk/nodejs/v2/cloud-scale/search/get-a-component-instance/)です。 #### JSON設定の作成 以下のコードスニペットは、個々のテーブルのインデックス付きカラムで検索するパターンの属性を含むJSONオブジェクトを作成します。 ```javascript //Create a config object with the search term, table and indexed columns let config = { search: 'santh\*',search_table_columns: { SampleTable: ['SearchIndexedColumn'], Users: ['SearchTest'] } }; ``` ### 検索クエリの実行 前のセクションで作成したJSONオブジェクトを_executeSearchQuery()_メソッドのパラメータとして渡すと、Promiseが返されます。返されるPromiseは、JSONであるオブジェクトに解決されます。 ```javascript //Execute the search query by passing the configuration let search = app.search(); let searchPromise = search.executeSearchQuery(config); searchPromise.then(searchResult => { console.log(searchResult); }); ``` 受け取るサンプルレスポンスを以下に示します。レスポンスはNode.jsの両方のバージョンで同じです。 #### Node.js ```javascript { AlienCity: [ { CREATORID: "2136000000006003", MODIFIEDTIME: "2021-08-13 13:49:19:475", CityName: "Dallas", CREATEDTIME: "2021-08-13 13:49:19:475", ROWID: "2136000000008508" } ] } ```