---
title: "キーワードフリーズなしのクエリ"
slug: "querying-without-a-keyphrase"
abstract: "Searchと推薦のAPIを使って、簡単なrecommendationsの依頼を作成する方法を学びSitecore Search。"
---
# キーワードフリーズなしのクエリ

最も基本的なリクエストは、キーフレーズなしのクエリSitecore Searchです。コンテンツのリクエストに必要なのは [必須](https://doc.sitecore.com/search/ja/developers/search-developer-guide/integrating-using-rest-apis/using-the-search-and-recommendation-api-to-create-search-experiences/calling-the-search-and-recommendation-api.html#UUID-90f1e35c-1e81-b7fe-0449-7caa2006c58d_section-idm1823331597240184 "Mandatory objects") オブジェクトだけです。

データモデルについては、[SearchおよびRecommendation API参照](https://doc.sitecore.com/search/en/developers/search-and-recommentation-api/index.html)を参照してください。

以下のコードサンプルは、簡単なリクエストの作成方法を示しています:

{
 "widget": {
 "items": 
 {
 "rfk\_id": "rfkid\_7",
 "entity": "content",
 "search": {
 "content": {}
 }
 }
 
 },
 "context": {
 "locale": {
 "country": "us",
 "language": "en"
 }
 }
}

以下はその質問への回答です:

{
 "widgets": 
 {
 "rfk\_id": "rfkid\_7",
 "entity": "content",
 "content": 
 {
 "description": "July 22, 2021As we should all know by now...",
 "id": "https\_\_\_www\_sitecore\_com\_company\_news-events\_news\_2021\_07\_how-managers-can-support-employees-with-their-mental-health",
 "source\_id": "388218",
 "subtitle": null,
 "title": "B2B Marketing: How managers can support employees with their mental health",
 "type": "news",
 "url": "https://www.sitecore.com/company/news-events/news/2021/07/how-managers-can-support-employees-with-their-mental-health"
 },
 {
 "description": "June 10, 2022Following two tumultuous years, consumers are returning to their pre-pandemic ways...",
 "id": "https\_\_\_www\_sitecore\_com\_company\_news-events\_news\_2022\_06\_brand-loyalty-declines-as-consumers-push-for-transparency",
 "source\_id": "388218",
 "subtitle": null,
 "title": "Street Fight Magazine: Report: Brand Loyalty Declines as Consumers Push for Transparency",
 "type": "news",
 "url": "https://www.sitecore.com/company/news-events/news/2022/06/brand-loyalty-declines-as-consumers-push-for-transparency"
 }
 ...
 ,
 "total\_item": 5858,
 "limit": 10,
 "offset": 0
 }
 ,
 "dt": 21,
 "ts": 1669435830588
}

> !重要ソースを指定するリクエストは以下のステータスコードを返します:
> 
> ステータスコードが戻りました
> 
> 概要
> 
> 200
> 
> ソースが初期化されたり、インデックス実行が成功した場合に。ソースがアイテムをインデックスする必要はない。
> 
> 500
> 
> ソースが初期化されていない場合。