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.
| Attachment | Size |
|---|---|
| commentsearch.patch | 11.93 KB |

#1
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
Some bugfixes.
#3
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 :(
#4
Better handling of status and reindexing when comment is changed.
#5
#4 has been committed to 6.2. #3 hasn't been.