Integrate with Search API: index inputs of component instances that are populated using fields (SDC + code components)
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3534466. -->
Reported by: [phenaproxima](https://www.drupal.org/user/205645)
Related to !186 !1240
>>>
<h3 id="overview">Overview</h3>
<p>Canvas pages need to be available to Search API, in the sense that the full rendered component tree will need to be indexed. That's not natively supported by Canvas, but @mglaman and friends wrote it for another context which they have agreed to open-source.</p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<p>Let's port their work over to Canvas. It's got tests and everything!</p>
<h3 id="ui-changes">User interface changes</h3>
<p>No obvious ones, except that Canvas pages will appear in search results.</p>
<p>Steps to test:</p>
<ol>
<li>Apply the MR on a site with Canvas pages</li>
<li>Add Canvas pages to the search index</li>
<li>In search index fields, add 'Canvas component tree inputs' and set the type to Fulltext</li>
<li>Reindex and clear cache</li>
<li>Search for text that appears on a Canvas page</li>
</ol>
issue