If I add a search index display on all my custom types, and set visible only a few columns, those columns will only be included in the search index ?

My problem is that i have columns i don't want to index (like file names), and i don't know how to do it.

  • 1
    I think this is a dup, but I can't find it right now.
    – mpdonadio
    Commented Mar 1, 2014 at 21:27

1 Answer 1


The search index is a view mode, but it is hidden by default (for some unknown reason).

Goto the Manage Display page for your content type. Expand the Custom Display Settings at the bottom. Tick Search Index and save.

A new tab, Search Index will appear. Click this, and then configure your content type to show / hide the fields you want indexed.

You may need to dump the search index (admin/config/search/settings) and then reindex the site. I can't recall if saving the search index does this automatically, of if I normally form alter that form to do it. The easiest way to do this is with drush:

drush -y search-reindex
drush -y search-index

As a side note, I will be releasing a small module to help debug search issues and check things like this. I am test driving it on a few sites now, and think it will be ready soon.

  • So, if i enable the search index display view and set it how i want, only what i set visible will be indexed ? Commented Mar 1, 2014 at 21:40
  • 1
    @rhose87 Yes, that should work for you. I will update the answer if/when I release the module.
    – mpdonadio
    Commented Mar 1, 2014 at 21:45

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.