I noticed that my search was not return results from comment text. Another Drupal user was having an identical problem (See issue 1412078).

By trial and error, it comes down to "Content Access" being the culprit. Without the module enabled, comment text is indexed for search. Enabling "Content Access" prevents comment text from being indexed.

Possibly there is a permission setting for this somewhere, but I have not found it.

Comments

David4514’s picture

I have examined the search_index MySQL table. This is a case where the comments are not being indexed (i.e. the information is not in the search_index table) when Content Access is enabled. It is not just a matter of it not being displayed.

Richard_1618’s picture

This is a brilliant module but comment searching is essential - please can this be resolved!!

Richard

David4514’s picture

I agree that this needs to be fixed. A hack to core can be found in #1396534: Search does not index comments subject to node access which solves the problem. It works for me, but I would not say that it is fully tested for all environments.

gisle’s picture

Version: 7.x-1.2-beta1 » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (outdated)
Related issues: +#1396534: Search does not index comments subject to node access

It is a core issue.

This issue has not received any updates in the previous 8 years. If you believe it to still be relevant, you are encouraged to reopen the issue and update it.

If you got an email about this Issue status update, it is because you at one time (possibly a very long time ago), subscribed to it. To learn how to unsubscribe yourself, please visit: https://www.drupal.org/project/webmasters/issues/3142987