By sihgneg on
I'm pretty new to Drupal but I've managed to get a site (v7.10)up and running with some custom content types and working well for the most part. I'm stuck, however, with comments not appearing in the search results.
Most of the searching I've done indicates that comments should be searched and have their results appear. I have confirmed that cron is running and I've had the search successfully add new node entries to my search results however the comments remain missing from search results. Can anyone provide me with some direction on what I might check to get this working?
Thank you.
Comments
=-=
comments don't appear as direct links in search results because they are not nodes. Comments are attached to nodes, thus the node the comment is link to should appear?
Sorry, perhaps I wasn't clear
Sorry, perhaps I wasn't clear enough... comments aren't even being indexed. For example, if I add a comment with the word "woodchuck" in it and the word "woodchuck" doesn't appear in the content of any node no search results are returned when I search for "woodchuck." I understand that the search results would like only to the node, but the search isn't even looking in the comments to return the comment's node as a search result.
=-=
I just tested this issue on a failrly new site and comments are returned during my testing.
are you sure cron.php was run, after the comment was saved to the DB?
Yes, I'm certain cron.php was
Yes, I'm certain cron.php was run.
I tried using the #drupal-support channel for advice yesterday and was told I likely needed a separate module to index comments for searching however I could not find such a module.
Instead, I tried removing a bunch of modules I had installed in my testing. To be more effective I should have tested one by one but I just wanted to get things working. After removing a bunch of modules I rebuilt the index and re-ran cron.php and the comments were indexed for searching. My conclusion, therefore, is that one of the modules I removed caused the comments not to be indexed.
Just in case anyone else runs into this here's a list of the modules I uninstalled... sorry I didn't track it down to which one specifically caused the problem but I believe one (or maybe more) of these modules was at fault:
- ACL
- Content Access
- CTools Page Manager
- Panels
It seems likely that one of the access control type modules was the culprit but I can't be sure. Hope that helps for anyone else if they encounter this.
=-=
My first inclincation would the access module as well. IIRC there isn't a module for D7 that turns comments into nodes. There was http://drupal.org/project/nodecomment for D6.
I am having the same problem also
I'm using all of the modules other than ACL in your list. I would have to start over again to remove those modules for a test.
Dave
Content Access is causing the problem for me
On a test system which I can easily restore I disabled Content Access, Rebuild Permissions, and Re-indexed the site. Comments show up in the results.
I then re-enable Content Access, Rebuild Permissions, and re-index the site again and the Comments are no longer indexed.
It appears that Content Access is the problem. However, I must have Content Access, so I will need a solution.
Dave
Same problem would really appreciate HELP (",)
I've been trying to run cron.php, clear cache and rebuild permissions repeatedly to get comments to come through on the search results - also using views to change the layout but comments aren't showing any results.
Also using
- ACL
- Content Access
- CTools Page Manager
- Panels