We needed a way to set the $settings['collection'] value to a specific collection name.

We created this small patch that adds an drupal_alter() call at the end of _google_appliance_get_settings()

CommentFileSizeAuthor
#2 google_appliance-2626784-2.patch380 bytesgmercer

Comments

gmercer created an issue. See original summary.

gmercer’s picture

StatusFileSize
new380 bytes

Here is the patch that addresses this issue.

iamEAP’s picture

Thanks for the patch, @gmercer. Is it possible for you to use the existing hook_google_appliance_query_alter to change the collection?

iamEAP’s picture

Status: Active » Postponed (maintainer needs more info)
ldpm’s picture

You should be able to use the provided hook to set the collection that is searched, though I'm not clear on whether that solves @gmercer's question.

function gsa_tweaks_google_appliance_query_alter(&$query) {

  	  $query['gsa_query_params']['site'] = 'myCollection';
  }