I'm using drupal search module to search/find/filter content in my CUSTOM MODULE and it's not returning any results when I search for a word listed in content of my custom module content type. It return results only when i search for a users and others content type.

Any body knows what can i do to fix this? Do I have to implement any hook to index the content of my custom module?


1) My custom module it's based in the drupal core blog module

2) I was using Custom Search module, but i've disabled it

3) I've tried the search api module and views exposed filter (Search Terms) and nothing

Thank you

  • 1
    Is your site indexed?
    – 4life
    Aug 8, 2013 at 18:13
  • Duplicate of drupal.stackexchange.com/questions/57275/… Aug 8, 2013 at 18:15
  • yes, 100% indexed. I've runned the cron and it's all indexed
    – user19627
    Aug 8, 2013 at 18:16
  • Does a direct link to example.com/search/node/foo bring up a 404 or the no results page?
    – mpdonadio
    Aug 8, 2013 at 18:45
  • @MPD when i search for "FOO" I get the path mysite.com/search/node/FOO and "Your search yielded no results". I still don't know why this is occurring. I'm trying to fix this within 2 days and nothing
    – user19627
    Aug 8, 2013 at 18:54

1 Answer 1


This is a shot in the dark, but I would do the following. This assumes you are on Drupal 7.

On, admin/structure/types/manage/page/display, open Custom Settings and select Search Index. Save. Then click on the Search Index tab and configure the view mode for all of the fields that you want to search in.

On admin/config/search/settings, make sure that you have Node selected.

On admin/config/search/custom_search/content, double check that you have selected the content types that you want to search (or leave that fieldset empty). Also check that you aren't excluding any types that you actually want to search.

If your site isn't that big, I would dump the search index and rebuild id. I normally do this from drush:

drush search-reindex
drush search-index

Then, open your MySQL tool of choice, and look for a few keywords that you know you should have hits on:

    word = 'foo'

If all of that works, then you shouldbe getting search results. If not, you need to find what is interfering with the indexing, which could be specific to your system.

  • 1
    Thank you for your answer, but did not work... I've updated my question to provide more information. Thank you in advance
    – user19627
    Aug 12, 2013 at 14:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.