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.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jastraat created an issue. See original summary.

jastraat’s picture

I 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

jastraat’s picture

Status: Active » Needs review

timozura made their first commit to this issue’s fork.

  • timozura committed fbb4ea35 on 1.0.x authored by jastraat
    Issue #3589169: Add config option for advanced website indexing
    
timozura’s picture

Status: Needs review » Fixed

Merged into 1.0.x-dev.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.