キーワードでクエリを
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
widget.items.search.queryオブジェクトを追加し、リクエスト内でkeyphraseキーを渡すことで、キーワードに関連する結果を表示します。
このオブジェクトのデータモデルについては、Search and Recommendation APIリファレンスを参照してください。
以下は、キーワードシン ポジウムを含むクエリの例です:
{ "widget": { "items": { "rfk_id": "rfkid_7", "entity": "content", "search": { "content": {}, "query": { "keyphrase": "symposium" } } }
}, "context": { "locale": { "country": "us", "language": "en" } } }
以下はその要請に対するサンプル回答です:
{ "widgets": { "rfk_id": "rfkid_7", "entity": "content", "content": { "description": "This event is now over. \nPlease visit News and Events to catch up with the latest from Sitecore. \nOr, visit our Knowledge Center for our blog, articles, and more helpful resources. Are you looking to grow revenue, drive customer experience and lead digital innovation? Marketing Symposium/Xpo offers a destination to interact with Gartner research experts, fellow marketers, and technology and solution providers to help you explore new thinking and answer tough questions. The rigorous methodologies and objective point of view cut through the hype to dive deeper into the areas that matter most to you.Read More: https://www.gartner.com/en/conferences/na/marketing-symposium-usWhen\\n\\n\\n\\n \n Monday, April 29, 2019 `3
` PM\n \nto \n Thursday, May 2, 2019 `12` AM\n Where\nSan Diego, CA", "id": "https___www_sitecore_com_company_news-events_events_2019_04_gartner-marketing-symposium-xpo", "image_type": "Image", "last_modified": "2022-01-24 `21`", "source_id": "407033", "subtitle": null, "title": "Gartner Marketing Symposium/Xpo", "type": "Events", "url": "https://www.sitecore.com/company/news-events/events/2019/04/gartner-marketing-symposium-xpo" }, { "description": "This event is now over. \nPlease visit News and Events to catch up with the latest from Sitecore. \nOr, visit our Knowledge Center for our blog, articles, and more helpful resources. Join over 250 energy professionals to discuss the latest industry trends and best practices in corporate and customer services. The diverse mix of presentations, Q&A panels, roundtable discussions and networking allow attendees to share their experiences and develop contacts throughout the industry.Read More: https://www.westernenergy.org/programs/customer-corporate-symposium-3/When\\n\\n\\n\\n \n Wednesday, March 13, 2019 `6` PM\n \nto \n Saturday, March 16, 2019 `12` AM\n Where\nHollywood, CA", "id": "https___www_sitecore_com_company_news-events_events_2019_03_western-energy-institute-symposium", "image_type": "Image", "last_modified": "2022-01-24 `21`", "source_id": "407033", "subtitle": null, "title": "Western Energy Institute Symposium", "type": "Events", "url": "https://www.sitecore.com/company/news-events/events/2019/03/western-energy-institute-symposium" }, { "description": "Unforgettable Digital Connections...", "id": "https___www_sitecore_com_landing_uk_2022_wt-london-2022", "image": "https://wwwsitecorecom.azureedge.net/-/media/sitecoresite/images/home/landing/uk/2022/london-wt/croplondonwt.png?md=20220609T131910Z", "image_url": "https://wwwsitecorecom.azureedge.net/-/media/sitecoresite/images/home/landing/uk/2022/london-wt/croplondonwt.png?mw=800&md=20220609T131910Z&hash=4B4E3F5E608A3CB3D14BA0C46FC22C4C&t=544x310", "last_modified": "2022-06-10 `11`", "source_id": "407033", "subtitle": "Here’s your chance to recap the sessions and hear from our real-world visionaries, industry rule-breakers, and thought-mavericks – for a limited time only.", "title": "Symposium World Tour – London", "type": "Others", "url": "https://www.sitecore.com/landing/uk/2022/wt-london-2022" } ... , "total_item": 157, "limit": 10, "offset": 0 } , "dt": 55, "ts": 1669435639321 }レスポンスcontent配列には、シンポジウム キーワードに関連するコンテンツが見られます。
!重要ソースを指定するリクエストは以下のステータスコードを返します:
ステータスコードが戻りました
概要
200
ソースが初期化されたり、インデックス実行が成功した場合に。ソースがアイテムをインデックスする必要はない。
500
ソースが初期化されていない場合。