? SolrPhpClient
? contrib/apachesolr_custom_sort
? contrib/apachesolr_custom_sort_2.zip
Index: apachesolr.index.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr.index.inc,v
retrieving revision 1.1.2.6.2.22
diff -u -p -r1.1.2.6.2.22 apachesolr.index.inc
--- apachesolr.index.inc	8 Apr 2010 15:08:36 -0000	1.1.2.6.2.22
+++ apachesolr.index.inc	8 Apr 2010 15:21:14 -0000
@@ -275,6 +275,7 @@ function apachesolr_add_tags_to_document
 
   preg_match_all('@<('. implode('|', array_keys($tags_to_index)) .')[^>]*>(.*)</\1>@Ui', $text, $matches);
   foreach ($matches[1] as $key => $tag) {
+    $tag = drupal_strtolower($tag);
     // We don't want to index links auto-generated by the url filter.
     if ($tag != 'a' || !preg_match('@(?:http://|https://|ftp://|mailto:|smb://|afp://|file://|gopher://|news://|ssl://|sslv2://|sslv3://|tls://|tcp://|udp://|www\.)[a-zA-Z0-9]+@', $matches[2][$key])) {
       $document->{$tags_to_index[$tag]} .= ' '. $matches[2][$key];
