Class: HubSpotSDK::Resources::Cms::SiteSearch
- Inherits:
-
Object
- Object
- HubSpotSDK::Resources::Cms::SiteSearch
- Defined in:
- lib/hubspot_sdk/resources/cms/site_search.rb
Instance Method Summary collapse
-
#get_indexed_data(content_id, type: nil, request_options: {}) ⇒ HubSpotSDK::Models::Cms::IndexedData
Return all indexed data for an asset (e.g., page, blog post, HubDB table), specified by ID.
-
#initialize(client:) ⇒ SiteSearch
constructor
private
A new instance of SiteSearch.
Constructor Details
#initialize(client:) ⇒ SiteSearch
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of SiteSearch.
35 36 37 |
# File 'lib/hubspot_sdk/resources/cms/site_search.rb', line 35 def initialize(client:) @client = client end |
Instance Method Details
#get_indexed_data(content_id, type: nil, request_options: {}) ⇒ HubSpotSDK::Models::Cms::IndexedData
Return all indexed data for an asset (e.g., page, blog post, HubDB table), specified by ID. This is useful when debugging why a particular asset is not returned from a custom search.
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/hubspot_sdk/resources/cms/site_search.rb', line 20 def get_indexed_data(content_id, params = {}) parsed, = HubSpotSDK::Cms::SiteSearchGetIndexedDataParams.dump_request(params) query = HubSpotSDK::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["cms/site-search/2026-03/indexed-data/%1$s", content_id], query: query, model: HubSpotSDK::Cms::IndexedData, options: ) end |