New contrib module: comment search

robertDouglass - September 17, 2009 - 21:31
Project:Apache Solr Search Integration
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

This new module treats each comment like a document and indexes them separately. It then treats "comment" as a content type, meaning you can facet on type:comment and just see comments.

Interestingly this module also solves the age old problem (seemingly unsolvable) of getting page=x right in the URL (node/3?page=5#comment-456) when the comments are not on the first page.

Committing attached patch.

AttachmentSize
commentsearch.patch11.93 KB

#1

robertDouglass - September 17, 2009 - 21:55
Status:needs review» needs work

The "deep linking" permalinks for comments don't always work. Maybe it's something wrong the the devel generated comments I'm testing with. Have to try with a real data set later. They work most of the time, though, which is better than D5 or D6 were able to do, afaik.

#2

robertDouglass - October 2, 2009 - 21:05

Some bugfixes.

AttachmentSize
commentsearch_bugfix.patch 1.51 KB

#3

robertDouglass - October 3, 2009 - 16:06

Comment access isn't respected by the current code. Something like this needs to happen, but this doesn't work. A refactoring of the query object is needed :(

AttachmentSize
comment_search_access.patch 2.02 KB

#4

robertDouglass - November 12, 2009 - 16:01

Better handling of status and reindexing when comment is changed.

AttachmentSize
commentsearch.patch 2.14 KB

#5

robertDouglass - November 20, 2009 - 18:15

#4 has been committed to 6.2. #3 hasn't been.

 
 

Drupal is a registered trademark of Dries Buytaert.