? .svn
? bugs.txt
? date-problems-350330-1.patch
? fix-language-348920-1.patch
? foo.php
? form-sort-323015-38.patch
? hl-cleanup-338534-20.patch
? minimal-spelling-303937-29.patch
? minimal-spelling-303937-30.patch
? minimal-spelling-303937-31.patch
? mlt-nodeaccess-348150-11.patch
? negative-fq-348029-3.patch
? node-doc-338534-22.patch
? omit-norms.patch
? query-nodeaccess-handling-348150-5.patch
? schema-303937-22.patch
? solr_hook_user.patch
? solrconfig-303937-22.patch
? solrconfig.xml.txt
? subfq-broken-348150-3.patch
? vocab-names-323015-49.patch
? weighting-extra-323015-52.patch
? weighting-extra-323015-53.patch
? weighting-extra-323015-54.patch
? xml-303937-23.patch
? xml-changes.diff
? SolrPhpClient/.svn
? SolrPhpClient/Apache/.svn
? SolrPhpClient/Apache/Solr/.svn
? SolrPhpClient/Apache/Solr/Service/.svn
? blocks/.svn
? contrib/.svn
? contrib/apachesolr_attachments/.svn
? contrib/apachesolr_image/.svn
? contrib/apachesolr_mlt/.svn
? contrib/apachesolr_multisitesearch/.svn
? contrib/apachesolr_nodeaccess/.svn
? contrib/apachesolr_nodeaccess/tests/.svn
? tests/.svn
Index: apachesolr.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr.module,v
retrieving revision 1.1.2.12.2.81
diff -u -p -r1.1.2.12.2.81 apachesolr.module
--- apachesolr.module	19 Dec 2008 04:14:06 -0000	1.1.2.12.2.81
+++ apachesolr.module	23 Dec 2008 01:44:18 -0000
@@ -475,9 +475,12 @@ function apachesolr_node_to_document($ni
     $document->title = $node->title;
     $document->body = strip_tags($text);
     $document->type  = $node->type;
-    $document->type_name = node_get_types('name', $node);
-    $document->changed = apachesolr_date_iso($node->changed + rand(1000,10000));
-    $document->comment_count = $node->comment_count;
+    $document->type_name = apachesolr_strip_ctl_chars(node_get_types('name', $node));
+    $document->created = apachesolr_date_iso($node->created);
+    $document->changed = apachesolr_date_iso($node->changed);
+    $last_change = (isset($node->last_comment_timestamp) && $node->last_comment_timestamp > $node->changed) ? $node->last_comment_timestamp : $node->changed;
+    $document->last_comment_or_change = apachesolr_date_iso($last_change);
+    $document->comment_count = isset($node->comment_count) ? $node->comment_count : 0;
     $document->name = apachesolr_strip_ctl_chars($node->name);
     $document->language = $node->language;
 
Index: schema.xml
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/schema.xml,v
retrieving revision 1.1.2.1.2.18
diff -u -p -r1.1.2.1.2.18 schema.xml
--- schema.xml	18 Dec 2008 10:41:16 -0000	1.1.2.1.2.18
+++ schema.xml	23 Dec 2008 01:44:18 -0000
@@ -253,7 +253,9 @@
    <field name="path" type="text" indexed="true" stored="true" termVectors="true"/>
    <field name="uid"  type="integer" indexed="true" stored="true"/>
    <field name="name" type="text" indexed="true" stored="true" termVectors="true"/>
+   <field name="created" type="date" indexed="true" stored="true"/>
    <field name="changed" type="date" indexed="true" stored="true"/>
+   <field name="last_comment_or_change" type="date" indexed="true" stored="true"/>
    <field name="nid"  type="integer" indexed="true" stored="true"/>
    <field name="status" type="integer" indexed="true" stored="true"/>
    <field name="comment_count" type="integer" indexed="true" stored="true"/>
