Hi,

I am using the hook

function custom_apachesolr_process_results(&$arg)
{
	// loop through each result, performing desired actions
	for($i = 0, $l = count($arg); $i < $l; $i++)
	{
		drupal_set_message("<pre>" . print_r($arg[$i], TRUE) . "</pre>");
	}
}

I am trying to get the ubercart fields to show up in this variable. What am I missing? I have the schema updated, and the module allowed me to index those fields into solr.

Thank you!

Comments

Hilyin’s picture

Hmm I think I got it.

I modified

function apachesolr_search_basic_params($query) {
  $params = array(
    'fl' => 'id,nid,title,comment_count,type,created,changed,score,path,url,uid,name',
    'rows' => variable_get('apachesolr_rows', 10),
    'facet' => 'true',
    'facet.mincount' => 1,
    'facet.sort' => 'true'
  );
  return $params;
}

to

function apachesolr_search_basic_params($query) {
  $params = array(
    'fl' => '*',
    'rows' => variable_get('apachesolr_rows', 10),
    'facet' => 'true',
    'facet.mincount' => 1,
    'facet.sort' => 'true'
  );
  return $params;
}

on apachesolr_search.module

nick_vh’s picture

Status: Active » Postponed (maintainer needs more info)

postponed this since I don't see a specific request in here?