Problem/Motivation
While snippets are included by default when querying a basic website index, they are only included from an advanced website index when you ask for them as part of the request config. E.g.
-d '{ "contentSearchSpec": { "snippetSpec": { "returnSnippet": true }}}'
Proposed resolution
Modify the Vertex AI search page settings form to add a checkbox like "Enable snippets when using advanced website indexing" and then based on the value of that setting, add the contentSearchSpec to include them in prepareSearchRequest().
Remaining tasks
User interface changes
New checkbox setting on search page forms.
Comments
Comment #3
jastraat commentedI created a more generic configuration setting called "Uses Advanced Website Indexing" that could be used to add the above to the request as well as with other tickets like https://www.drupal.org/project/vertex_ai_search/issues/3588686
Comment #4
jastraat commentedComment #7
timozura commentedMerged into 1.0.x-dev.