Index: CHANGELOG.txt =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/CHANGELOG.txt,v retrieving revision 1.1.2.112.2.13 diff -u -p -r1.1.2.112.2.13 CHANGELOG.txt --- CHANGELOG.txt 6 Nov 2009 09:39:34 -0000 1.1.2.112.2.13 +++ CHANGELOG.txt 6 Nov 2009 15:31:58 -0000 @@ -3,8 +3,9 @@ Apache Solr Search Integration x.x-x.x, xxxx-xx-xx ------------------------------ -Apache Solr Search integration 5.x-2.x, 2009-10-23 +Apache Solr Search integration 5.x-2.x, 2009-11-06 ------------------------------ +#623046 by robertDouglass, Make the results that come back from a search more useful. #576040 by robertDouglass, Use Drush to download the SolrPhpClient: drush solr phpclient. #570476 by robertDouglass, Add initial Drush support with commands drush solr delete index and drush solr reindex. #612024 by pwolanin, Add method to allow requests to additional Solr servelets. Index: apachesolr_search.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr_search.module,v retrieving revision 1.1.2.6.2.111.4.7 diff -u -p -r1.1.2.6.2.111.4.7 apachesolr_search.module --- apachesolr_search.module 23 Oct 2009 11:47:03 -0000 1.1.2.6.2.111.4.7 +++ apachesolr_search.module 6 Nov 2009 15:31:58 -0000 @@ -424,10 +424,14 @@ function apachesolr_process_response($re } $doc->created = strtotime($doc->created); $doc->changed = strtotime($doc->changed); - // Allow modules to alter each document. - drupal_alter('apachesolr_search_result', $doc); // Copy code from comment_nodeapi(). $extra[] = format_plural($doc->comment_count, '1 comment', '@count comments'); + // Allow modules to alter each document. + drupal_alter('apachesolr_search_result', $doc); + $fields = array(); + foreach ($doc->getFieldNames() as $field_name) { + $fields[$field_name] = $doc->getField($field_name); + } $results[] = array( 'link' => url($doc->path), 'type' => apachesolr_search_get_type($doc->type), @@ -438,6 +442,7 @@ function apachesolr_process_response($re 'extra' => $extra, 'score' => $doc->score, 'snippet' => $snippet, + 'fields' => $fields, ); }